@graphql-tools/delegate 9.0.2 → 9.0.4-alpha-20220815173503-a11014cc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/checkResultAndHandleErrors.js +1 -1
- package/cjs/createRequest.js +1 -1
- package/cjs/defaultMergedResolver.js +1 -1
- package/cjs/delegateToSchema.js +1 -1
- package/cjs/finalizeGatewayRequest.js +1 -1
- package/cjs/getDocumentMetadata.js +1 -1
- package/cjs/mergeFields.js +1 -1
- package/cjs/prepareGatewayDocument.js +1 -1
- package/cjs/resolveExternalValue.js +1 -1
- package/esm/checkResultAndHandleErrors.js +1 -1
- package/esm/createRequest.js +1 -1
- package/esm/defaultMergedResolver.js +1 -1
- package/esm/delegateToSchema.js +1 -1
- package/esm/finalizeGatewayRequest.js +1 -1
- package/esm/getDocumentMetadata.js +1 -1
- package/esm/mergeFields.js +1 -1
- package/esm/prepareGatewayDocument.js +1 -1
- package/esm/resolveExternalValue.js +1 -1
- package/package.json +5 -7
- package/typings/Subschema.d.cts +1 -1
- package/typings/Subschema.d.ts +1 -1
- package/typings/applySchemaTransforms.d.cts +1 -1
- package/typings/applySchemaTransforms.d.ts +1 -1
- package/typings/checkResultAndHandleErrors.d.cts +1 -1
- package/typings/checkResultAndHandleErrors.d.ts +1 -1
- package/typings/createRequest.d.cts +1 -1
- package/typings/createRequest.d.ts +1 -1
- package/typings/defaultMergedResolver.d.cts +1 -1
- package/typings/defaultMergedResolver.d.ts +1 -1
- package/typings/delegateToSchema.d.cts +1 -1
- package/typings/delegateToSchema.d.ts +1 -1
- package/typings/getDocumentMetadata.d.cts +1 -1
- package/typings/getDocumentMetadata.d.ts +1 -1
- package/typings/mergeFields.d.cts +1 -1
- package/typings/mergeFields.d.ts +1 -1
- package/typings/prepareGatewayDocument.d.cts +1 -1
- package/typings/prepareGatewayDocument.d.ts +1 -1
- package/typings/resolveExternalValue.d.cts +1 -1
- package/typings/resolveExternalValue.d.ts +1 -1
- package/typings/types.d.cts +1 -1
- package/typings/types.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeDataAndErrors = exports.checkResultAndHandleErrors = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const resolveExternalValue_js_1 = require("./resolveExternalValue.js");
|
|
7
7
|
function checkResultAndHandleErrors(result, delegationContext) {
|
package/cjs/createRequest.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRequest = exports.getDelegatingOperation = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
function getDelegatingOperation(parentType, schema) {
|
|
7
7
|
if (parentType === schema.getMutationType()) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultMergedResolver = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const resolveExternalValue_js_1 = require("./resolveExternalValue.js");
|
|
7
7
|
const mergeFields_js_1 = require("./mergeFields.js");
|
package/cjs/delegateToSchema.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createDefaultExecutor = exports.delegateRequest = exports.delegateToSchema = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const value_or_promise_1 = require("value-or-promise");
|
|
6
6
|
const batch_execute_1 = require("@graphql-tools/batch-execute");
|
|
7
7
|
const utils_1 = require("@graphql-tools/utils");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.finalizeGatewayRequest = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const getDocumentMetadata_js_1 = require("./getDocumentMetadata.js");
|
|
7
7
|
function finalizeGatewayDocument(targetSchema, fragments, operations) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDocumentMetadata = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
function getDocumentMetadata(document) {
|
|
6
6
|
const operations = [];
|
|
7
7
|
const fragments = [];
|
package/cjs/mergeFields.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeFields = exports.getUnpathedErrors = exports.getSubschema = exports.annotateExternalObject = exports.isExternalObject = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const symbols_js_1 = require("./symbols.js");
|
|
7
7
|
function isExternalObject(data) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prepareGatewayDocument = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const getDocumentMetadata_js_1 = require("./getDocumentMetadata.js");
|
|
7
7
|
function prepareGatewayDocument(originalDocument, transformedSchema, returnType, infoSchema) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveExternalValue = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const mergeFields_js_1 = require("./mergeFields.js");
|
|
7
7
|
function resolveExternalValue(result, unpathedErrors, subschema, context, info, returnType = getReturnType(info), skipTypeMerging) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { responsePathAsArray, locatedError } from 'graphql';
|
|
1
|
+
import { responsePathAsArray, locatedError, } from '@graphql-tools/graphql';
|
|
2
2
|
import { AggregateError, getResponseKeyFromInfo, relocatedError } from '@graphql-tools/utils';
|
|
3
3
|
import { resolveExternalValue } from './resolveExternalValue.js';
|
|
4
4
|
export function checkResultAndHandleErrors(result, delegationContext) {
|
package/esm/createRequest.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kind, typeFromAST, } from 'graphql';
|
|
1
|
+
import { Kind, typeFromAST, } from '@graphql-tools/graphql';
|
|
2
2
|
import { createVariableNameGenerator, serializeInputValue, updateArgument, } from '@graphql-tools/utils';
|
|
3
3
|
export function getDelegatingOperation(parentType, schema) {
|
|
4
4
|
if (parentType === schema.getMutationType()) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultFieldResolver } from 'graphql';
|
|
1
|
+
import { defaultFieldResolver } from '@graphql-tools/graphql';
|
|
2
2
|
import { getResponseKeyFromInfo } from '@graphql-tools/utils';
|
|
3
3
|
import { resolveExternalValue } from './resolveExternalValue.js';
|
|
4
4
|
import { getSubschema, getUnpathedErrors, isExternalObject } from './mergeFields.js';
|
package/esm/delegateToSchema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validate, subscribe, execute, } from 'graphql';
|
|
1
|
+
import { validate, subscribe, execute, } from '@graphql-tools/graphql';
|
|
2
2
|
import { ValueOrPromise } from 'value-or-promise';
|
|
3
3
|
import { getBatchingExecutor } from '@graphql-tools/batch-execute';
|
|
4
4
|
import { mapAsyncIterator, AggregateError, isAsyncIterable, getDefinedRootType, memoize1, getOperationASTFromRequest, } from '@graphql-tools/utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getNamedType, isAbstractType, isInterfaceType, isObjectType, Kind, TypeInfo, TypeNameMetaFieldDef, versionInfo as graphqlVersionInfo, visit, visitWithTypeInfo, } from 'graphql';
|
|
1
|
+
import { getNamedType, isAbstractType, isInterfaceType, isObjectType, Kind, TypeInfo, TypeNameMetaFieldDef, versionInfo as graphqlVersionInfo, visit, visitWithTypeInfo, } from '@graphql-tools/graphql';
|
|
2
2
|
import { getDefinedRootType, serializeInputValue, updateArgument, createVariableNameGenerator, implementsAbstractType, inspect, } from '@graphql-tools/utils';
|
|
3
3
|
import { getDocumentMetadata } from './getDocumentMetadata.js';
|
|
4
4
|
function finalizeGatewayDocument(targetSchema, fragments, operations) {
|
package/esm/mergeFields.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { responsePathAsArray, GraphQLError, locatedError, } from 'graphql';
|
|
1
|
+
import { responsePathAsArray, GraphQLError, locatedError, } from '@graphql-tools/graphql';
|
|
2
2
|
import { collectFields, relocatedError } from '@graphql-tools/utils';
|
|
3
3
|
import { FIELD_SUBSCHEMA_MAP_SYMBOL, OBJECT_SUBSCHEMA_SYMBOL, UNPATHED_ERRORS_SYMBOL } from './symbols.js';
|
|
4
4
|
export function isExternalObject(data) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kind, TypeInfo, getNamedType, isAbstractType, isInterfaceType, visit, visitWithTypeInfo, isObjectType, } from 'graphql';
|
|
1
|
+
import { Kind, TypeInfo, getNamedType, isAbstractType, isInterfaceType, visit, visitWithTypeInfo, isObjectType, } from '@graphql-tools/graphql';
|
|
2
2
|
import { implementsAbstractType, getRootTypeNames, memoize2 } from '@graphql-tools/utils';
|
|
3
3
|
import { getDocumentMetadata } from './getDocumentMetadata.js';
|
|
4
4
|
export function prepareGatewayDocument(originalDocument, transformedSchema, returnType, infoSchema) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getNullableType, isCompositeType, isListType, isAbstractType, locatedError, } from 'graphql';
|
|
1
|
+
import { getNullableType, isCompositeType, isListType, isAbstractType, locatedError, } from '@graphql-tools/graphql';
|
|
2
2
|
import { AggregateError } from '@graphql-tools/utils';
|
|
3
3
|
import { annotateExternalObject, isExternalObject, mergeFields } from './mergeFields.js';
|
|
4
4
|
export function resolveExternalValue(result, unpathedErrors, subschema, context, info, returnType = getReturnType(info), skipTypeMerging) {
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/delegate",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.4-alpha-20220815173503-a11014cc",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"peerDependencies": {
|
|
7
|
-
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
|
-
},
|
|
9
6
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/batch-execute": "8.5.
|
|
11
|
-
"@graphql-tools/schema": "9.0.
|
|
12
|
-
"@graphql-tools/utils": "8.10.
|
|
7
|
+
"@graphql-tools/batch-execute": "8.5.4-alpha-20220815173503-a11014cc",
|
|
8
|
+
"@graphql-tools/schema": "9.0.2-alpha-20220815173503-a11014cc",
|
|
9
|
+
"@graphql-tools/utils": "8.10.1-alpha-20220815173503-a11014cc",
|
|
10
|
+
"@graphql-tools/graphql": "0.1.0-alpha-20220815173503-a11014cc",
|
|
13
11
|
"dataloader": "2.1.0",
|
|
14
12
|
"tslib": "~2.4.0",
|
|
15
13
|
"value-or-promise": "1.0.11"
|
package/typings/Subschema.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { SubschemaConfig, Transform, MergedTypeConfig, CreateProxyingResolverFn, BatchingOptions } from './types.cjs';
|
|
3
3
|
import { Executor } from '@graphql-tools/utils';
|
|
4
4
|
export declare function isSubschema(value: any): value is Subschema;
|
package/typings/Subschema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { SubschemaConfig, Transform, MergedTypeConfig, CreateProxyingResolverFn, BatchingOptions } from './types.js';
|
|
3
3
|
import { Executor } from '@graphql-tools/utils';
|
|
4
4
|
export declare function isSubschema(value: any): value is Subschema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { SubschemaConfig } from './types.cjs';
|
|
3
3
|
export declare const applySchemaTransforms: (originalWrappingSchema: GraphQLSchema, subschemaConfig: SubschemaConfig<any, any, any, any>) => GraphQLSchema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { SubschemaConfig } from './types.js';
|
|
3
3
|
export declare const applySchemaTransforms: (originalWrappingSchema: GraphQLSchema, subschemaConfig: SubschemaConfig<any, any, any, any>) => GraphQLSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
1
|
+
import { GraphQLError } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExecutionResult } from '@graphql-tools/utils';
|
|
3
3
|
import { DelegationContext } from './types.cjs';
|
|
4
4
|
export declare function checkResultAndHandleErrors<TContext extends Record<string, any>>(result: ExecutionResult, delegationContext: DelegationContext<TContext>): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
1
|
+
import { GraphQLError } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExecutionResult } from '@graphql-tools/utils';
|
|
3
3
|
import { DelegationContext } from './types.js';
|
|
4
4
|
export declare function checkResultAndHandleErrors<TContext extends Record<string, any>>(result: ExecutionResult, delegationContext: DelegationContext<TContext>): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLObjectType, OperationTypeNode } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLObjectType, OperationTypeNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExecutionRequest } from '@graphql-tools/utils';
|
|
3
3
|
import { ICreateRequest } from './types.cjs';
|
|
4
4
|
export declare function getDelegatingOperation(parentType: GraphQLObjectType, schema: GraphQLSchema): OperationTypeNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLObjectType, OperationTypeNode } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLObjectType, OperationTypeNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExecutionRequest } from '@graphql-tools/utils';
|
|
3
3
|
import { ICreateRequest } from './types.js';
|
|
4
4
|
export declare function getDelegatingOperation(parentType: GraphQLObjectType, schema: GraphQLSchema): OperationTypeNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { Executor } from '@graphql-tools/utils';
|
|
3
3
|
import { IDelegateToSchemaOptions, IDelegateRequestOptions } from './types.cjs';
|
|
4
4
|
export declare function delegateToSchema<TContext extends Record<string, any> = Record<string, any>, TArgs extends Record<string, any> = any>(options: IDelegateToSchemaOptions<TContext, TArgs>): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { Executor } from '@graphql-tools/utils';
|
|
3
3
|
import { IDelegateToSchemaOptions, IDelegateRequestOptions } from './types.js';
|
|
4
4
|
export declare function delegateToSchema<TContext extends Record<string, any> = Record<string, any>, TArgs extends Record<string, any> = any>(options: IDelegateToSchemaOptions<TContext, TArgs>): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentNode, FragmentDefinitionNode, OperationDefinitionNode } from 'graphql';
|
|
1
|
+
import { DocumentNode, FragmentDefinitionNode, OperationDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function getDocumentMetadata(document: DocumentNode): {
|
|
3
3
|
operations: Array<OperationDefinitionNode>;
|
|
4
4
|
fragments: Array<FragmentDefinitionNode>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentNode, FragmentDefinitionNode, OperationDefinitionNode } from 'graphql';
|
|
1
|
+
import { DocumentNode, FragmentDefinitionNode, OperationDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function getDocumentMetadata(document: DocumentNode): {
|
|
3
3
|
operations: Array<OperationDefinitionNode>;
|
|
4
4
|
fragments: Array<FragmentDefinitionNode>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExternalObject, MergedTypeInfo, SubschemaConfig } from './types.cjs';
|
|
3
3
|
import { Subschema } from './Subschema.cjs';
|
|
4
4
|
export declare function isExternalObject(data: any): data is ExternalObject;
|
package/typings/mergeFields.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExternalObject, MergedTypeInfo, SubschemaConfig } from './types.js';
|
|
3
3
|
import { Subschema } from './Subschema.js';
|
|
4
4
|
export declare function isExternalObject(data: any): data is ExternalObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DocumentNode, GraphQLSchema, GraphQLOutputType } from 'graphql';
|
|
1
|
+
import { DocumentNode, GraphQLSchema, GraphQLOutputType } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function prepareGatewayDocument(originalDocument: DocumentNode, transformedSchema: GraphQLSchema, returnType: GraphQLOutputType, infoSchema?: GraphQLSchema): DocumentNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DocumentNode, GraphQLSchema, GraphQLOutputType } from 'graphql';
|
|
1
|
+
import { DocumentNode, GraphQLSchema, GraphQLOutputType } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function prepareGatewayDocument(originalDocument: DocumentNode, transformedSchema: GraphQLSchema, returnType: GraphQLOutputType, infoSchema?: GraphQLSchema): DocumentNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema, GraphQLOutputType } from 'graphql';
|
|
1
|
+
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema, GraphQLOutputType } from '@graphql-tools/graphql';
|
|
2
2
|
import { SubschemaConfig } from './types.cjs';
|
|
3
3
|
export declare function resolveExternalValue<TContext extends Record<string, any>>(result: any, unpathedErrors: Array<GraphQLError>, subschema: GraphQLSchema | SubschemaConfig<any, any, any, TContext>, context?: Record<string, any>, info?: GraphQLResolveInfo, returnType?: GraphQLOutputType, skipTypeMerging?: boolean): any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema, GraphQLOutputType } from 'graphql';
|
|
1
|
+
import { GraphQLResolveInfo, GraphQLError, GraphQLSchema, GraphQLOutputType } from '@graphql-tools/graphql';
|
|
2
2
|
import { SubschemaConfig } from './types.js';
|
|
3
3
|
export declare function resolveExternalValue<TContext extends Record<string, any>>(result: any, unpathedErrors: Array<GraphQLError>, subschema: GraphQLSchema | SubschemaConfig<any, any, any, TContext>, context?: Record<string, any>, info?: GraphQLResolveInfo, returnType?: GraphQLOutputType, skipTypeMerging?: boolean): any;
|
package/typings/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLOutputType, SelectionSetNode, FieldNode, GraphQLResolveInfo, GraphQLFieldResolver, FragmentDefinitionNode, GraphQLObjectType, VariableDefinitionNode, OperationTypeNode, GraphQLError, GraphQLNamedType } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLOutputType, SelectionSetNode, FieldNode, GraphQLResolveInfo, GraphQLFieldResolver, FragmentDefinitionNode, GraphQLObjectType, VariableDefinitionNode, OperationTypeNode, GraphQLError, GraphQLNamedType } from '@graphql-tools/graphql';
|
|
2
2
|
import DataLoader from 'dataloader';
|
|
3
3
|
import { ExecutionRequest, ExecutionResult, Executor } from '@graphql-tools/utils';
|
|
4
4
|
import { Subschema } from './Subschema.cjs';
|
package/typings/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLOutputType, SelectionSetNode, FieldNode, GraphQLResolveInfo, GraphQLFieldResolver, FragmentDefinitionNode, GraphQLObjectType, VariableDefinitionNode, OperationTypeNode, GraphQLError, GraphQLNamedType } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLOutputType, SelectionSetNode, FieldNode, GraphQLResolveInfo, GraphQLFieldResolver, FragmentDefinitionNode, GraphQLObjectType, VariableDefinitionNode, OperationTypeNode, GraphQLError, GraphQLNamedType } from '@graphql-tools/graphql';
|
|
2
2
|
import DataLoader from 'dataloader';
|
|
3
3
|
import { ExecutionRequest, ExecutionResult, Executor } from '@graphql-tools/utils';
|
|
4
4
|
import { Subschema } from './Subschema.js';
|