UNPKG

jok

Version:

Bundle of utility functions for code generation related to nodejs and graphql

8 lines (7 loc) 356 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function default_1(_a) { var hasProps = _a.hasProps, queryName = _a.queryName; return "\n\treturn this.client.writeQuery({\n\t\tquery,\n\t\tdata: { " + queryName + ": data },\n\t\t" + (hasProps ? 'variables: props,' : '') + "\n\t })\n\t"; } exports.default = default_1;