import { IntrospectionInputValue } from 'graphql' import getGraphqlTypeString from './getGraphqlTypeString' export default function buildVariablesDeclarationString(inputs: ReadonlyArray) { if (!inputs.length) { return '' } const argsList = inputs .map(x => `$${x.name}: ${getGraphqlTypeString({ type: x.type })}`) .join(', ') return `(${argsList})` }