-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaffolds don't handle optional relations with string keys #4297
Labels
Comments
Adding a validate to those TextFields works:
Might be nice to have a |
Have a PR ready to go, just need #4299 to be merged first |
This was referenced Feb 2, 2022
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given this prisma schema
If you scaffold user you get this
Trying to create a new user like this you get an error
The front-end says
{"errors":[{"message":"Something went wrong."}],"data":null}
The back-end says
But it should be fine to leave the id out, because the relation is optional
The text was updated successfully, but these errors were encountered: