Properties
Optional
apollo
apollo?: ApolloConfigInput
Optional
cache
cache?: KeyValueCache<string>
Optional
cacheControl
cacheControl?: boolean | CacheControlExtensionOptions
Optional
context
context?: object | ContextFunction<any, object>
Optional
dataSources
dataSources?: (() => DataSources<object>)
Type declaration
-
- (): DataSources<object>
-
Returns DataSources<object>
Optional
debug
debug?: boolean
Optional
engine
engine?: boolean | EngineReportingOptions<object>
Optional
executor
executor?: GraphQLExecutor
Optional
experimental_approximateDocumentStoreMiB
experimental_approximateDocumentStoreMiB?: number
Optional
extensions
extensions?: (() => GraphQLExtension<any>)[]
Type declaration
-
- (): GraphQLExtension<any>
-
Returns GraphQLExtension<any>
Optional
fieldResolver
fieldResolver?: GraphQLFieldResolver<any, object>
Optional
formatError
formatError?: ((error) => GraphQLFormattedError<Record<string, any>>)
Type declaration
-
- (error): GraphQLFormattedError<Record<string, any>>
-
Returns GraphQLFormattedError<Record<string, any>>
Optional
formatResponse
formatResponse?: ((response, requestContext) => GraphQLResponse)
Type declaration
-
- (response, requestContext): GraphQLResponse
-
Parameters
-
response: GraphQLResponse
-
requestContext: GraphQLRequestContext<object>
Returns GraphQLResponse
Optional
gateway
gateway?: GraphQLService
Optional
introspection
introspection?: boolean
Optional
logger
logger?: Logger
Optional
mockEntireSchema
mockEntireSchema?: boolean
Optional
mocks
mocks?: boolean | IMocks
Optional
modules
modules?: GraphQLSchemaModule[]
Optional
parseOptions
parseOptions?: GraphQLParseOptions
Optional
persistedQueries
persistedQueries?: false | PersistedQueryOptions
Optional
playground
playground?: PlaygroundConfig
Optional
plugins
plugins?: PluginDefinition[]
Optional
resolvers
resolvers?: IResolvers<any, any> | IResolvers<any, any>[]
Optional
rootValue
rootValue?: any
Optional
schema
schema?: GraphQLSchema
Optional
schemaDirectives
schemaDirectives?: Record<string, typeof SchemaDirectiveVisitor>
Optional
stopOnTerminationSignals
stopOnTerminationSignals?: boolean
Optional
subscriptions
subscriptions?: string | false | Partial<SubscriptionServerOptions>
Optional
tracing
tracing?: boolean
Optional
typeDefs
typeDefs?: string | string[] | DocumentNode | DocumentNode[]
Optional
uploads
uploads?: boolean | FileUploadOptions
Optional
validationRules
validationRules?: ((context) => any)[]
Type declaration
-
- (context): any
-
Parameters
-
context: ValidationContext
Returns any