1 | import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
|
2 | import { GraphQLSchema } from 'graphql';
|
3 | export declare namespace SchemaLink {
|
4 | type ResolverContextFunction = (operation: Operation) => Record<string, any>;
|
5 | interface Options {
|
6 | schema: GraphQLSchema;
|
7 | rootValue?: any;
|
8 | context?: ResolverContextFunction | Record<string, any>;
|
9 | }
|
10 | }
|
11 | export declare class SchemaLink extends ApolloLink {
|
12 | schema: GraphQLSchema;
|
13 | rootValue: any;
|
14 | context: SchemaLink.ResolverContextFunction | any;
|
15 | constructor({ schema, rootValue, context }: SchemaLink.Options);
|
16 | request(operation: Operation): Observable<FetchResult> | null;
|
17 | }
|
18 | export default SchemaLink;
|
19 | //# sourceMappingURL=index.d.ts.map |
\ | No newline at end of file |