UNPKG

460 BTypeScriptView Raw
1/// <reference types="typed-graphql" />
2import { Document, SelectionSet } from 'graphql';
3export declare type QueryTransformer = (selectionSet: SelectionSet) => void;
4export declare function addFieldToSelectionSet(fieldName: string, selectionSet: SelectionSet): void;
5export declare function addTypenameToSelectionSet(selectionSet: SelectionSet): void;
6export declare function applyTransformers(doc: Document, queryTransformers: QueryTransformer[]): Document;