apollo-schema-extend
Version:
Extends your Apollo Server Express based graphql server with an external graphql source
7 lines (6 loc) • 500 B
TypeScript
import { DefinitionNode, DirectiveNode, FragmentDefinitionNode, OperationDefinitionNode, SelectionNode } from 'graphql';
export declare const getArgumentVariables: <TNode extends SelectionNode | DirectiveNode | DefinitionNode>(node: TNode) => string[];
/**
* Returns a shallow copy of the operation containing only variables that are used in the operation
*/
export declare const cleanVariables: (operation: OperationDefinitionNode, fragments: FragmentDefinitionNode[]) => OperationDefinitionNode;