@graphql-tools/apollo-engine-loader
Advanced tools
Comparing version 5.0.1-alpha-cf1d5c6.0 to 5.0.1-alpha-d3da75f.0
@@ -26,2 +26,5 @@ 'use strict'; | ||
'apollo-client-version': '2.6.8', | ||
'Content-Type': 'application/json', | ||
Accept: 'application/json', | ||
...options.headers, | ||
}, | ||
@@ -28,0 +31,0 @@ body: JSON.stringify({ |
@@ -1,9 +0,18 @@ | ||
import { SchemaLoader, Source } from '@graphql-tools/utils'; | ||
export declare class ApolloEngineLoader implements SchemaLoader { | ||
import { SchemaLoader, Source, SingleFileOptions } from '@graphql-tools/utils'; | ||
export interface ApolloEngineOptions extends SingleFileOptions { | ||
engine: { | ||
endpoint: string; | ||
apiKey: string; | ||
}; | ||
graph: string; | ||
variant: string; | ||
headers?: Record<string, string>; | ||
} | ||
export declare class ApolloEngineLoader implements SchemaLoader<ApolloEngineOptions> { | ||
loaderId(): string; | ||
canLoad(ptr: string): Promise<boolean>; | ||
canLoadSync(): boolean; | ||
load(_: 'apollo-engine', options: any): Promise<Source>; | ||
load(_: 'apollo-engine', options: ApolloEngineOptions): Promise<Source>; | ||
loadSync(): never; | ||
} | ||
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 hash\n __schema: introspection {\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n }\n types(filter: { includeBuiltInTypes: true }) {\n ...IntrospectionFullType\n }\n directives {\n name\n description\n locations\n args {\n ...IntrospectionInputValue\n }\n }\n }\n }\n }\n }\n }\n\n fragment IntrospectionFullType on IntrospectionType {\n kind\n name\n description\n fields {\n name\n description\n args {\n ...IntrospectionInputValue\n }\n type {\n ...IntrospectionTypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...IntrospectionInputValue\n }\n interfaces {\n ...IntrospectionTypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...IntrospectionTypeRef\n }\n }\n\n fragment IntrospectionInputValue on IntrospectionInputValue {\n name\n description\n type {\n ...IntrospectionTypeRef\n }\n defaultValue\n }\n\n fragment IntrospectionTypeRef on IntrospectionType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n"; |
@@ -22,2 +22,5 @@ import { fetch } from 'cross-fetch'; | ||
'apollo-client-version': '2.6.8', | ||
'Content-Type': 'application/json', | ||
Accept: 'application/json', | ||
...options.headers, | ||
}, | ||
@@ -24,0 +27,0 @@ body: JSON.stringify({ |
{ | ||
"name": "@graphql-tools/apollo-engine-loader", | ||
"version": "5.0.1-alpha-cf1d5c6.0", | ||
"version": "5.0.1-alpha-d3da75f.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -9,3 +9,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-tools/utils": "5.0.1-alpha-cf1d5c6.0", | ||
"@graphql-tools/utils": "5.0.1-alpha-d3da75f.0", | ||
"cross-fetch": "3.0.4", | ||
@@ -12,0 +12,0 @@ "tslib": "1.11.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22199
331
+ Added@graphql-tools/utils@5.0.1-alpha-d3da75f.0(transitive)
- Removed@graphql-tools/utils@5.0.1-alpha-cf1d5c6.0(transitive)
- Removedaggregate-error@3.0.1(transitive)
- Removedclean-stack@2.2.0(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedlodash@4.17.15(transitive)