@ctil/gql 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3989,7 +3989,7 @@ function buildGraphQLQueryAggregate(input) {
|
|
|
3989
3989
|
|
|
3990
3990
|
// src/builders/mutation.ts
|
|
3991
3991
|
function buildGraphQLMutation(input) {
|
|
3992
|
-
const { operationName, fields, datas, _set, where, variables } = input;
|
|
3992
|
+
const { operationName, fields, datas, _set, where, variables, variableName } = input;
|
|
3993
3993
|
if (!operationName) {
|
|
3994
3994
|
throw new Error("operationName is required");
|
|
3995
3995
|
}
|
|
@@ -4004,7 +4004,7 @@ function buildGraphQLMutation(input) {
|
|
|
4004
4004
|
finalVariables.datas = dataArray;
|
|
4005
4005
|
const datasArg = "$datas";
|
|
4006
4006
|
const query2 = `mutation ${operationName}${varDefs ? `(${varDefs})` : ""} {
|
|
4007
|
-
${operationName}(${
|
|
4007
|
+
${operationName}(${variableName ? variableName : "datas"}: ${datasArg}) {
|
|
4008
4008
|
affected_rows
|
|
4009
4009
|
returning { ${fieldsStr} }
|
|
4010
4010
|
}
|