ApolloDriverConfig
interface ApolloDriverConfig extends Omit, 'typeDefs' | 'schema' | 'resolvers' | 'gateway'>, ServerRegistration, GqlModuleOptions {
installSubscriptionHandlers?: boolean
subscriptions?: SubscriptionConfig
playground?: boolean | ApolloServerPluginLandingPageGraphQLPlaygroundOptions
autoTransformHttpErrors?: boolean
// inherited from graphql/packages/apollo/lib/ServerRegistration
path?: string
}
Properties
Property | Description |
---|---|
installSubscriptionHandlers?: boolean
|
If enabled, "subscriptions-transport-ws" will be automatically registered. |
subscriptions?: SubscriptionConfig
|
Subscriptions configuration. |
playground?: boolean | ApolloServerPluginLandingPageGraphQLPlaygroundOptions
|
GraphQL playground options. |
autoTransformHttpErrors?: boolean
|
If enabled, will register a global interceptor that automatically maps "HttpException" class instances to corresponding Apollo errors. By default is true |