(py: Python<'_>)
| 23 | } |
| 24 | |
| 25 | pub fn base_graphql_module(py: Python<'_>) -> Result<Bound<'_, PyModule>, PyErr> { |
| 26 | let graphql_module = PyModule::new(py, "graphql")?; |
| 27 | graphql_module.add_class::<PyGraphServer>()?; |
| 28 | graphql_module.add_class::<PyRunningGraphServer>()?; |
| 29 | graphql_module.add_class::<PyRaphtoryClient>()?; |
| 30 | graphql_module.add_class::<PyRemoteGraph>()?; |
| 31 | graphql_module.add_class::<PyRemoteEdge>()?; |
| 32 | graphql_module.add_class::<PyRemoteNode>()?; |
| 33 | graphql_module.add_class::<PyNodeAddition>()?; |
| 34 | graphql_module.add_class::<PyUpdate>()?; |
| 35 | graphql_module.add_class::<PyEdgeAddition>()?; |
| 36 | graphql_module.add_class::<PyRemoteIndexSpec>()?; |
| 37 | graphql_module.add_class::<PyPropsInput>()?; |
| 38 | graphql_module.add_class::<PySomePropertySpec>()?; |
| 39 | graphql_module.add_class::<PyAllPropertySpec>()?; |
| 40 | |
| 41 | graphql_module.add_function(wrap_pyfunction!(encode_graph, &graphql_module)?)?; |
| 42 | graphql_module.add_function(wrap_pyfunction!(decode_graph, &graphql_module)?)?; |
| 43 | graphql_module.add_function(wrap_pyfunction!(schema, &graphql_module)?)?; |
| 44 | graphql_module.add_function(wrap_pyfunction!(python_cli, &graphql_module)?)?; |
| 45 | graphql_module.add_function(wrap_pyfunction!( |
| 46 | has_permissions_extension, |
| 47 | &graphql_module |
| 48 | )?)?; |
| 49 | |
| 50 | Ok(graphql_module) |
| 51 | } |
no outgoing calls
no test coverage detected