UNPKG

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