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 1ec5d70 commit c46e3d0Copy full SHA for c46e3d0
packages/runtime/src/client/crud/validator/index.ts
@@ -1195,7 +1195,7 @@ export class InputValidator<Schema extends SchemaDef> {
1195
z
1196
.object({
1197
set: arraySchema.optional(),
1198
- push: z.union([fieldSchema, arraySchema]).optional(),
+ push: z.union([fieldSchema, fieldSchema.array()]).optional(),
1199
})
1200
.refine(
1201
(v) => Object.keys(v).length === 1,
0 commit comments