Current section
Files
Jump to
Current section
Files
priv/npm/node_modules/graphql-tools/utils/fieldNodes.d.ts
import { FieldNode, FragmentDefinitionNode, SelectionSetNode } from 'graphql';
export declare function renameFieldNode(fieldNode: FieldNode, name: string): FieldNode;
export declare function preAliasFieldNode(fieldNode: FieldNode, str: string): FieldNode;
export declare function wrapFieldNode(fieldNode: FieldNode, path: Array<string>): FieldNode;
export declare function collectFields(selectionSet: SelectionSetNode | undefined, fragments: Record<string, FragmentDefinitionNode>, fields?: Array<FieldNode>, visitedFragmentNames?: {}): Array<FieldNode>;
export declare function hoistFieldNodes({ fieldNode, fieldNames, path, delimeter, fragments, }: {
fieldNode: FieldNode;
fieldNames?: Array<string>;
path?: Array<string>;
delimeter?: string;
fragments: Record<string, FragmentDefinitionNode>;
}): Array<FieldNode>;