UNPKG

560 BTypeScriptView Raw
1import { GraphQLSchema, GraphQLResolveInfo, GraphQLOutputType } from 'graphql';
2import { Operation } from '../types';
3export declare function isScalar(t: GraphQLOutputType): boolean;
4export declare function getTypeForRootFieldName(rootFieldName: string, operation: Operation, schema: GraphQLSchema): GraphQLOutputType;
5export declare function forwardTo(bindingName: string): <PARENT, ARGS, CONTEXT>(parent: PARENT, args: ARGS, context: CONTEXT, info: GraphQLResolveInfo) => any;
6export declare function printDocumentFromInfo(info: GraphQLResolveInfo): string;