UNPKG

715 BTypeScriptView Raw
1import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from 'graphql';
2export declare type Skip = string[];
3export declare type Force = string[];
4export declare type Ignore = string[];
5export declare type SelectedFields = {
6 [key: string]: SelectedFields;
7} | boolean;
8export declare function buildOperationNodeForField({ schema, kind, field, models, ignore, depthLimit, circularReferenceDepth, argNames, selectedFields, }: {
9 schema: GraphQLSchema;
10 kind: OperationTypeNode;
11 field: string;
12 models?: string[];
13 ignore?: Ignore;
14 depthLimit?: number;
15 circularReferenceDepth?: number;
16 argNames?: string[];
17 selectedFields?: SelectedFields;
18}): OperationDefinitionNode;