You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my request validation the phoneNumber wasn't compulsory but the zod schema made the phoneNumber compulsory...
When I tried to run the request I got the error below but to my surprise the data was present in the database
Describe the bug
I had a user schema with the following
On my request validation the phoneNumber wasn't compulsory but the zod schema made the phoneNumber compulsory...
When I tried to run the request I got the error below but to my surprise the data was present in the database
error: Query 1 failed to parse - @0.phoneNumber: Required code: "parse_failure"
Expected behavior
I expected the query not to run if the zod validation failed so the database wouldn't have any values
Environment:
The text was updated successfully, but these errors were encountered: