@graphql-mesh/utils
Version:
7 lines (6 loc) • 363 B
text/typescript
import { type SelectionSetNode } from 'graphql';
/**
* Checks recursively whether all of the fields of {@link requiredSelSet} exist in {@link selSet}
*/
export declare function containsSelectionSet(requiredSelSet: SelectionSetNode, selSet: SelectionSetNode): boolean;
export declare function selectionSetOfData(data: Record<string, unknown>): SelectionSetNode;