MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / graphql_handler

Function graphql_handler

examples/graphql_example/api/src/lib.rs:19–21  ·  view source on GitHub ↗
(schema: State<AppSchema>, req: GraphQLRequest)

Source from the content-addressed store, hash-verified

17use dotenvy::dotenv;
18
19async fn graphql_handler(schema: State<AppSchema>, req: GraphQLRequest) -> GraphQLResponse {
20 schema.execute(req.into_inner()).await.into()
21}
22
23async fn graphql_playground() -> impl IntoResponse {
24 Html(playground_source(GraphQLPlaygroundConfig::new(

Callers

nothing calls this directly

Calls 2

into_innerMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected