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 546ba8e commit 6eaf1cdCopy full SHA for 6eaf1cd
packages/runtime/src/plugins/policy/policy-handler.ts
@@ -124,7 +124,7 @@ export class PolicyHandler<Schema extends SchemaDef> extends OperationNodeTransf
124
125
// --- Post mutation work ---
126
127
- if (hasPostUpdatePolicies) {
+ if (hasPostUpdatePolicies && result.rows.length > 0) {
128
// entities updated filter
129
const idConditions = this.buildIdConditions(mutationModel, result.rows);
130
0 commit comments