Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "graphql/index"

Index

Interfaces

Variables

Functions

Variables

Const schema

schema: GraphQLSchema = makeExecutableSchema({ typeDefs, resolvers })

Makes schema from schema definition (typeDefs) and resolvers (functions that resolve the requested query)

Functions

serveGraphQLRequest

  • Processes GraphQL request and returns the result

    Parameters

    • args: IGraphQLEndpointRequest

      are values needed to execute the GraphQL query. args.source is the query itself, args.operationName is the name of the query, args.variableValues are variables sent with the query, and contextValue is a custom context object that can be passed to the query so the requested resource can authenticate access to the resource.

    • res: Response

      is the express Response object that GraphQL will send the processed response to.

    Returns void

Generated using TypeDoc