UNPKG

794 BTypeScriptView Raw
1import { GraphQLSchema, GraphQLObjectType, OperationTypeNode } from 'graphql';
2import { ExecutionRequest } from '@graphql-tools/utils';
3import { ICreateRequestFromInfo, ICreateRequest } from './types';
4export declare function getDelegatingOperation(parentType: GraphQLObjectType, schema: GraphQLSchema): OperationTypeNode;
5export declare function createRequestFromInfo({ info, rootValue, operationName, operation, fieldName, selectionSet, fieldNodes, context, }: ICreateRequestFromInfo): ExecutionRequest;
6export declare function createRequest({ sourceSchema, sourceParentType, sourceFieldName, fragments, variableDefinitions, variableValues, targetRootValue, targetOperationName, targetOperation, targetFieldName, selectionSet, fieldNodes, context, info, }: ICreateRequest): ExecutionRequest;