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
Errors at nested writes #5012
Comments
I think this behaviour is expected. We just need to return better errors which will happen once error spec is implemented(https://github.com/prisma/specs/tree/master/errors) |
Perhaps, in these cases, is no need to throw errors? |
I could reproduce
schema
|
Here what happened is that I had one User without a Profile and I was trying to update the Profile, which is not possible because it didn't exist (needs to be created first). |
Related to #5015 |
For nested update of a non-existing record, we're tracking that in #5015 For disconnection/nested deletion of a non-existing record, I think the error is better now:
|
Hello!
Don't you think that throwing an error in the following cases is not worth it?
The text was updated successfully, but these errors were encountered: