Skip to main content
Module

x/graphql_deno/mod.ts>graphqlSync

GraphQL-JS ported to Deno
Latest
function graphqlSync
import { graphqlSync } from "https://deno.land/x/graphql_deno@v15.0.0/mod.ts";

The graphqlSync function also fulfills GraphQL operations by parsing, validating, and executing a GraphQL document along side a GraphQL schema. However, it guarantees to complete synchronously (or throw an error) assuming that all field resolvers are also synchronous.

Parameters

args: GraphQLArgs

Returns

ExecutionResult

Parameters

schema: GraphQLSchema
source: Source | string
optional
rootValue: any
optional
contextValue: any
optional
variableValues: Maybe<{ [key: string]: any; }>
optional
operationName: Maybe<string>
optional
fieldResolver: Maybe<GraphQLFieldResolver<any, any>>
optional
typeResolver: Maybe<GraphQLTypeResolver<any, any>>

Returns

ExecutionResult