@gqlts/cli
Version:
Generate a client sdk from your GraphQl API
9 lines • 433 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.toArgsString = toArgsString;
const comment_1 = require("./comment");
const renderTyping_1 = require("./renderTyping");
function toArgsString(field) {
return `{${field.args.map((a) => `${(0, comment_1.argumentComment)(a)}${a.name}${(0, renderTyping_1.renderTyping)(a.type, false, true)}`).join(',')}}`;
}
//# sourceMappingURL=toArgsString.js.map
;