We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e3be3 commit b52c0d5Copy full SHA for b52c0d5
src/PostgraphileNestedMutationsPlugin.js
@@ -438,6 +438,11 @@ module.exports = function PostGraphileNestedMutationPlugin(builder) {
438
});
439
440
if (primaryKeys) {
441
+ if (!connectedRow) {
442
+ throw new Error(
443
+ 'Unable to update/select parent row.',
444
+ );
445
+ }
446
const rowKeyValues = {};
447
primaryKeys.forEach((col) => {
448
rowKeyValues[col.name] = connectedRow[col.name];
@@ -520,7 +525,7 @@ module.exports = function PostGraphileNestedMutationPlugin(builder) {
520
525
);
521
526
}),
522
527
523
-
528
+
524
529
if (fieldValue.deleteOthers) {
530
// istanbul ignore next
531
if (!primaryKeys) {
0 commit comments