Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor runHttpQuery and runQuery #1468

Closed
wants to merge 9 commits into from
12 changes: 6 additions & 6 deletions packages/apollo-server-core/src/graphqlOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ import { DataSource } from 'apollo-datasource';
* - (optional) extensions: an array of functions which create GraphQLExtensions (each GraphQLExtension object is used for one request)
*
*/
export interface GraphQLServerOptions<
TContext =
| (() => Promise<Record<string, any>> | Record<string, any>)
| Record<string, any>
> {
export interface GraphQLServerOptions<TContext extends object = object> {
schema: GraphQLSchema;
formatError?: Function;
rootValue?: any;
context?: TContext;
context?:
| TContext
| ((
integrationContextArgument: Record<string, any>,
) => TContext | Promise<TContext>);
validationRules?: Array<(context: ValidationContext) => any>;
formatResponse?: Function;
fieldResolver?: GraphQLFieldResolver<any, TContext>;
Expand Down
Loading