Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ReferenceInput allowEmpty attribute not working correctly #26

Open
EarthlingDavey opened this issue Jan 27, 2019 · 1 comment · May be fixed by #41
Open

ReferenceInput allowEmpty attribute not working correctly #26

EarthlingDavey opened this issue Jan 27, 2019 · 1 comment · May be fixed by #41

Comments

@EarthlingDavey
Copy link

To replicate, create a reference input with the allowEmpty attribute.

  1. Set the reference input
  2. Save
  3. Edit and select empty for the reference input
  4. Save

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}}

@PaulDreef
Copy link

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 ?..

@macrozone macrozone linked a pull request Sep 3, 2019 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants