Page Contents

Home > @loopback/graphql > GraphQLServerOptions

GraphQLServerOptions interface

Options for GraphQL server

Signature:

export interface GraphQLServerOptions<TContext extends BaseContext = BaseContext> extends HttpOptions 

Extends: HttpOptions

Properties

Property Modifiers Type Description

apollo?

Partial<ApolloServerOptionsWithStaticSchema<TContext>>

(Optional) ApolloServerExpress related configuration

asMiddlewareOnly?

boolean

(Optional) Use as a middleware for RestServer instead of a standalone server

expressSettings?

Record<string, unknown>

(Optional) Express settings

graphQLPath?

string

(Optional)

middlewareOptions?

Record<string, unknown>

(Optional) Middleware options for GraphQL

validate?

boolean

(Optional)