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