-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Insert parent-child records in a single mutation #331
Comments
possibly related to #326 |
See if this latest release fixes it 6a020d2 |
Hey, I updated to 0.17.29 and it is not working. In my case I have also one parent object with a field with multiple child objects, that are not inserted. But also no error is thrown.
and after an insert, only the meeting is in the database but no options
(postgres schema is
) |
Should not be the mutation in the test TestCompileInsert/nestedInsertOneToMany in github.com/dosco/graphjin/core/internal/psql like
and not
like currently? If I run the test, change the data like above and output |
Thanks for this detailed report. I'll take another look at this. |
Added a new test |
Hey, I tested 0.17.30 and it works great 👍🏻 |
What version of GraphJin are you using?
graphjin version
v0.17.16
Have you tried reproducing the issue with the latest release?
Yes
Steps to reproduce the issue (config used to run GraphJin).
Pass the following mutation query
and variable as
Expected behaviour and actual result.
Expected to insert data and return
But returns
"ERROR: cannot call populate_composite on an array (SQLSTATE 22023)"
This is useful to insert 1-many relation parent-child records and seems to be supported from https://github.com/dosco/graphjin/wiki/Guide-to-GraphQL#nested-insert or I may be mistaken.
Thanks for this excellent library and help.
The text was updated successfully, but these errors were encountered: