Class GraphQLHandler

Constructors

Properties

graphqlSchema: GraphQLSchema
initialContext: unknown
initialResolverMap: ResolverMap
middlewares: ResolverMapMiddleware[]
packOptions: PackOptions
packed: boolean = false
scalarMap: ScalarMap
state: PackState

Methods

  • Type Parameters

    • DataResult = any

    Parameters

    • query: string | Source
    • OptionalvariableValues: Maybe<{
          [variable: string]: unknown;
      }>
    • OptionalqueryContext: unknown
    • OptionalgraphqlArgs: Partial<GraphQLArgs>

    Returns Promise<ExecutionResult<DataResult, ObjMap<unknown>>>