UNPKG

@graphql-tools/delegate

Version:

A set of utils for faster development of GraphQL tools

5 lines (4 loc) 816 B
import { FieldNode, GraphQLField, GraphQLInterfaceType, GraphQLNamedOutputType, GraphQLObjectType, GraphQLSchema, SelectionNode, SelectionSetNode } from 'graphql'; export declare const extractUnavailableFieldsFromSelectionSet: (schema: GraphQLSchema, fieldType: GraphQLNamedOutputType, fieldSelectionSet: SelectionSetNode, shouldAdd: (fieldType: GraphQLObjectType | GraphQLInterfaceType, selection: FieldNode) => boolean) => SelectionNode[]; export declare const extractUnavailableFields: (schema: GraphQLSchema, field: GraphQLField<any, any>, fieldNode: FieldNode, shouldAdd: (fieldType: GraphQLObjectType | GraphQLInterfaceType, selection: FieldNode) => boolean) => SelectionNode[]; export declare function subtractSelectionSets(selectionSetA: SelectionSetNode, selectionSetB: SelectionSetNode): SelectionSetNode;