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?](/doc/en/lb4/apidocs.graphql.graphqlserveroptions.apollo.html) | Partial<ApolloServerOptionsWithStaticSchema<TContext>> | _(Optional)_ ApolloServerExpress related configuration | |
| [asMiddlewareOnly?](/doc/en/lb4/apidocs.graphql.graphqlserveroptions.asmiddlewareonly.html) | boolean | _(Optional)_ Use as a middleware for RestServer instead of a standalone server | |
| [expressSettings?](/doc/en/lb4/apidocs.graphql.graphqlserveroptions.expresssettings.html) | Record<string, unknown> | _(Optional)_ Express settings | |
| [graphQLPath?](/doc/en/lb4/apidocs.graphql.graphqlserveroptions.graphqlpath.html) | string | _(Optional)_ | |
| [middlewareOptions?](/doc/en/lb4/apidocs.graphql.graphqlserveroptions.middlewareoptions.html) | Record<string, unknown> | _(Optional)_ Middleware options for GraphQL | |
| [validate?](/doc/en/lb4/apidocs.graphql.graphqlserveroptions.validate.html) | boolean | _(Optional)_ |