1 | import { BuildSchemaOptions, GraphQLFieldResolver, GraphQLSchema } from 'graphql';
|
2 | import { GraphQLParseOptions, IResolvers, IResolverValidationOptions, SchemaExtensions, TypeSource } from '@graphql-tools/utils';
|
3 | export interface GraphQLSchemaWithContext<TContext> extends GraphQLSchema {
|
4 | __context?: TContext;
|
5 | }
|
6 |
|
7 |
|
8 |
|
9 | export interface IExecutableSchemaDefinition<TContext = any> extends BuildSchemaOptions, GraphQLParseOptions {
|
10 | |
11 |
|
12 |
|
13 | typeDefs: TypeSource;
|
14 | |
15 |
|
16 |
|
17 | resolvers?: IResolvers<any, TContext> | Array<IResolvers<any, TContext>>;
|
18 | |
19 |
|
20 |
|
21 | resolverValidationOptions?: IResolverValidationOptions;
|
22 | |
23 |
|
24 |
|
25 |
|
26 | inheritResolversFromInterfaces?: boolean;
|
27 | |
28 |
|
29 |
|
30 | updateResolversInPlace?: boolean;
|
31 | |
32 |
|
33 |
|
34 | schemaExtensions?: SchemaExtensions | Array<SchemaExtensions>;
|
35 | |
36 |
|
37 |
|
38 | defaultFieldResolver?: GraphQLFieldResolver<any, TContext>;
|
39 | }
|