diff --git a/packages/apollo-server-core/src/graphqlOptions.ts b/packages/apollo-server-core/src/graphqlOptions.ts index a1122cdf5c6..32a3809dade 100644 --- a/packages/apollo-server-core/src/graphqlOptions.ts +++ b/packages/apollo-server-core/src/graphqlOptions.ts @@ -22,16 +22,16 @@ import { CacheControlExtensionOptions } from 'apollo-cache-control'; * - (optional) debug: a boolean that will print additional debug logging if execution errors occur * */ -export interface GraphQLServerOptions { + export interface GraphQLServerOptions { schema: GraphQLSchema; formatError?: Function; rootValue?: any; - context?: any; + context?: TContext; logFunction?: LogFunction; formatParams?: Function; validationRules?: Array<(context: ValidationContext) => any>; formatResponse?: Function; - fieldResolver?: GraphQLFieldResolver; + fieldResolver?: GraphQLFieldResolver; debug?: boolean; tracing?: boolean; cacheControl?: boolean | CacheControlExtensionOptions;