pub async fn execute<CtxT, QueryT, MutationT, SubscriptionT>(
        &self,
        root_node: &RootNode<'_, QueryT, MutationT, SubscriptionT, S>,
        context: &CtxT,
    ) -> GraphQLResponse
    where
        QueryT: GraphQLTypeAsync<S, Context = CtxT>,
        QueryT::TypeInfo: Sync,
        MutationT: GraphQLTypeAsync<S, Context = CtxT>,
        MutationT::TypeInfo: Sync,
        SubscriptionT: GraphQLSubscriptionType<S, Context = CtxT>,
        SubscriptionT::TypeInfo: Sync,
        CtxT: Sync,
        S: Send + Sync,
    {
        let response = self.0.execute(root_node, context).await;
        let status = if response.is_ok() {
            Status::Ok
        } else {
            Status::BadRequest
        };
        let json = serde_json::to_string(&response).unwrap();

        GraphQLResponse(status, json)
    }
/// Asynchronously execute an incoming GraphQL query.
Asynchronously execute an incoming GraphQL query.
Asynchronously execute an incoming GraphQL query .
pub async fn execute<CtxT, QueryT, MutationT, SubscriptionT>(
        &self,
        root_node: &RootNode<'_, QueryT, MutationT, SubscriptionT, S>,
        context: &CtxT,
    ) -> GraphQLResponse
    where
        QueryT: GraphQLTypeAsync<S, Context = CtxT>,
        QueryT::TypeInfo: Sync,
        MutationT: GraphQLTypeAsync<S, Context = CtxT>,
        MutationT::TypeInfo: Sync,
        SubscriptionT: GraphQLSubscriptionType<S, Context = CtxT>,
        SubscriptionT::TypeInfo: Sync,
        CtxT: Sync,
        S: Send + Sync,
    {
        let response = self.0.execute(root_node, context).await;
        let status = if response.is_ok() {
            Status::Ok
        } else {
            Status::BadRequest
        };
        let json = serde_json::to_string(&response).unwrap();
        GraphQLResponse(status, json)
    }
pub async fn execute < CtxT , QueryT , MutationT , SubscriptionT > ( & self , root_node : & RootNode < ' _ , QueryT , MutationT , SubscriptionT , S > , context : & CtxT , ) -> GraphQLResponse where QueryT : GraphQLTypeAsync < S , Context = CtxT > , QueryT :: TypeInfo : Sync , MutationT : GraphQLTypeAsync < S , Context = CtxT > , MutationT :: TypeInfo : Sync , SubscriptionT : GraphQLSubscriptionType < S , Context = CtxT > , SubscriptionT :: TypeInfo : Sync , CtxT : Sync , S : Send + Sync , { let response = self . 0 . execute ( root_node , context ) . await ; let status = if response . is_ok ( ) { Status :: Ok } else { Status :: BadRequest } ; let json = serde_json :: to_string ( & response ) . unwrap ( ) ; GraphQLResponse ( status , json ) }
Asynchronously execute an incoming GraphQL query.
Asynchronously 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