@morojs/moro / GraphQLSchemaBuilderOptions
Interface: GraphQLSchemaBuilderOptions
Defined in: src/core/graphql/types.ts:48
GraphQL schema builder options
Properties
context?
optionalcontext?: (req,res) =>GraphQLContext|Promise<GraphQLContext>
Defined in: src/core/graphql/types.ts:52
Parameters
req
res
Returns
GraphQLContext | Promise<GraphQLContext>
extensions?
optionalextensions?:any[]
Defined in: src/core/graphql/types.ts:55
formatError?
optionalformatError?: (error) =>any
Defined in: src/core/graphql/types.ts:53
Parameters
error
GraphQLError
Returns
any
resolvers?
optionalresolvers?:GraphQLResolvers
Defined in: src/core/graphql/types.ts:50
schema?
optionalschema?:GraphQLSchema
Defined in: src/core/graphql/types.ts:51
typeDefs?
optionaltypeDefs?:string|string[]
Defined in: src/core/graphql/types.ts:49
validationRules?
optionalvalidationRules?:any[]
Defined in: src/core/graphql/types.ts:54