1 | import { Source, BaseLoaderOptions, Loader } from '@graphql-tools/utils';
|
2 |
|
3 |
|
4 |
|
5 | export interface ApolloEngineOptions extends BaseLoaderOptions {
|
6 | engine: {
|
7 | endpoint?: string;
|
8 | apiKey: string;
|
9 | };
|
10 | graph: string;
|
11 | variant: string;
|
12 | headers?: Record<string, string>;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 | export declare class ApolloEngineLoader implements Loader<ApolloEngineOptions> {
|
18 | private getFetchArgs;
|
19 | canLoad(ptr: string): Promise<boolean>;
|
20 | canLoadSync(ptr: string): boolean;
|
21 | load(pointer: string, options: ApolloEngineOptions): Promise<Source[]>;
|
22 | loadSync(pointer: string, options: ApolloEngineOptions): Source[];
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 | export declare const SCHEMA_QUERY = "\n query GetSchemaByTag($tag: String!, $id: ID!) {\n service(id: $id) {\n ... on Service {\n __typename\n schema(tag: $tag) {\n document\n }\n }\n }\n }\n";
|