pub fn execute_sync<CtxT, QueryT, MutationT, SubscriptionT>(
        &self,
        root_node: &RootNode<QueryT, MutationT, SubscriptionT, S>,
        context: &CtxT,
    ) -> GraphQLResponse
    where
        QueryT: GraphQLType<S, Context = CtxT>,
        MutationT: GraphQLType<S, Context = CtxT>,
        SubscriptionT: GraphQLType<S, Context = CtxT>,
    {
        let response = self.0.execute_sync(root_node, context);
        let status = if response.is_ok() {
            Status::Ok
        } else {
            Status::BadRequest
        };
        let json = serde_json::to_string(&response).unwrap();

        GraphQLResponse(status, json)
    }
/// Synchronously execute an incoming GraphQL query.
Synchronously execute an incoming GraphQL query.
Synchronously execute an incoming GraphQL query .
pub fn execute_sync<CtxT, QueryT, MutationT, SubscriptionT>(
        &self,
        root_node: &RootNode<QueryT, MutationT, SubscriptionT, S>,
        context: &CtxT,
    ) -> GraphQLResponse
    where
        QueryT: GraphQLType<S, Context = CtxT>,
        MutationT: GraphQLType<S, Context = CtxT>,
        SubscriptionT: GraphQLType<S, Context = CtxT>,
    {
        let response = self.0.execute_sync(root_node, context);
        let status = if response.is_ok() {
            Status::Ok
        } else {
            Status::BadRequest
        };
        let json = serde_json::to_string(&response).unwrap();
        GraphQLResponse(status, json)
    }
pub fn execute_sync < CtxT , QueryT , MutationT , SubscriptionT > ( & self , root_node : & RootNode < QueryT , MutationT , SubscriptionT , S > , context : & CtxT , ) -> GraphQLResponse where QueryT : GraphQLType < S , Context = CtxT > , MutationT : GraphQLType < S , Context = CtxT > , SubscriptionT : GraphQLType < S , Context = CtxT > , { let response = self . 0 . execute_sync ( root_node , context ) ; let status = if response . is_ok ( ) { Status :: Ok } else { Status :: BadRequest } ; let json = serde_json :: to_string ( & response ) . unwrap ( ) ; GraphQLResponse ( status , json ) }
Synchronously execute an incoming GraphQL query.
Synchronously execute an incoming GraphQL query .
&self
root_node
&RootNode<QueryT, MutationT, SubscriptionT, S>
context
&CtxT
&self
root_node
&RootNode<QueryT, MutationT, SubscriptionT, S>
context
&CtxT