19 lines
715 B
TypeScript
19 lines
715 B
TypeScript
import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from 'graphql';
|
|
export declare type Skip = string[];
|
|
export declare type Force = string[];
|
|
export declare type Ignore = string[];
|
|
export declare type SelectedFields = {
|
|
[key: string]: SelectedFields;
|
|
} | boolean;
|
|
export declare function buildOperationNodeForField({ schema, kind, field, models, ignore, depthLimit, circularReferenceDepth, argNames, selectedFields, }: {
|
|
schema: GraphQLSchema;
|
|
kind: OperationTypeNode;
|
|
field: string;
|
|
models?: string[];
|
|
ignore?: Ignore;
|
|
depthLimit?: number;
|
|
circularReferenceDepth?: number;
|
|
argNames?: string[];
|
|
selectedFields?: SelectedFields;
|
|
}): OperationDefinitionNode;
|