@graphql-tools/utils
Version:
Common package containing utils and types for GraphQL tools
4 lines (3 loc) • 489 B
TypeScript
import { ArgumentNode, GraphQLInputType, VariableDefinitionNode } from 'graphql';
export declare function updateArgument(argumentNodes: Record<string, ArgumentNode>, variableDefinitionsMap: Record<string, VariableDefinitionNode>, variableValues: Record<string, any>, argName: string, varName: string, type: GraphQLInputType, value: any): void;
export declare function createVariableNameGenerator(variableDefinitionMap: Record<string, VariableDefinitionNode>): (argName: string) => string;