diff --git a/packages/runtime/src/plugins/policy/policy-handler.ts b/packages/runtime/src/plugins/policy/policy-handler.ts index 597ac249..49e5afd1 100644 --- a/packages/runtime/src/plugins/policy/policy-handler.ts +++ b/packages/runtime/src/plugins/policy/policy-handler.ts @@ -124,7 +124,7 @@ export class PolicyHandler extends OperationNodeTransf // --- Post mutation work --- - if (hasPostUpdatePolicies) { + if (hasPostUpdatePolicies && result.rows.length > 0) { // entities updated filter const idConditions = this.buildIdConditions(mutationModel, result.rows);