-
Notifications
You must be signed in to change notification settings - Fork 45
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
ReferenceInput allowEmpty attribute not working correctly #26
Comments
Similar problem with embedded objects of prisma-mondogb {parent:{foo: 1, baz: 2}} is not working when using arraylist with nested items. Weakky, maybe you can give a direction how to fix this ?.. |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To replicate, create a reference input with the allowEmpty attribute.
The result is a request with the following data object:
{title: "Title", parent: {connect: {id: ""}}}
and the following error:
Warning: Missing translation for key: "GraphQL error: No Node for the model PostCategory with value for id found."
Expected result is no error and a request with data object something like this:
{title: "Title", parent: {disconnect: true}}
The text was updated successfully, but these errors were encountered: