Set the maximum number of rows that can be affected by the query.
Only available in PostgREST v13+ and only works with PATCH, DELETE methods and RPC calls.
handling=strict and max-affected=<value> headers for row limit enforcement.try await supabase
.from("users")
.update(["status": "active"])
.eq("id", value: 1)
.maxAffected(1)
.execute()
try await supabase
.from("users")
.delete()
.in("id", values: [1, 2, 3])
.maxAffected(3)
.execute()
try await supabase
.rpc("delete_inactive_users")
.maxAffected(10)
.execute()