graphql-engine
graphql-engine copied to clipboard
[RFC] nested updates
Description
Propose RFC for nested updates. View RFC
Affected components
- [x] Other (list it)
- RFCs
Related Issues
- https://github.com/hasura/graphql-engine/issues/669
- https://github.com/hasura/graphql-engine/issues/1573
- https://github.com/hasura/graphql-engine/issues/3366
- https://github.com/hasura/graphql-engine/issues/2952
Excited to see this being worked on! Can you expand on how would link and unlink work?
@dariocravero I have updated the RFC with some more details. Let me know if you think there should be some more information.
@rikinsk is this PR also covering m:n related nested updates?
Gotcha! Thanks @rikinsk!
https://github.com/hasura/graphql-engine/issues/669 was the first related issue, may want to add it to the description :)
Deploy preview for hasura-docs ready!
Built with commit f1c3c90368583022b0eb519f6131f08db2714f66
https://deploy-preview-3852--hasura-docs.netlify.com
@rikinsk looking at the RFC, looks like you have only one _relationships per mutation, is that correct? So you can’t update multiple authors with different addresses?
Current proposed API would cover most of the use cases though. Would love to see any progress in this area.
@almassapargali That is true. All the authors that would be updated are selected via the where
clause and the "update" performed on all of them will be the same ie. same address update
Excited to see that this functionality is in the works. Looking forward to experiment with it :)
Is this still in the works?
Looking forward to this feature! ✌️
We really need this feature !!
Dear all, what is the status on this feature? When can we expect it to be live?
Bumping this issue again :) This would be an awesome feature!
I've been checking this issue every other day hoping to see some movement. Will this land any time soon?
The RFC, if I am reading it correctly, treats an upsert as an insert, and does nothing extra.
I have a situation in which I am doing an upsert, and have a nested array relationship. When my upsert is updating an existing row, I would like to replace any existing nested relationships with the new relationships I am specifying in the upsert.
Can this scenario be included?
Another bump. Is there any update about this?
Any chance this gets merged before 2.0 exits the alpha stage?
Any chance this gets merged before 2.0 exits the alpha stage?
@BenoitRanque I don't think this has even gone to development yet since the RFC is still open
I've been doing tests in the last few hours and have seen that one-to-one relationship inserts with the foreign key on the "child" table are now working on cloud. I can't find any other info about this pushed to production besides this: https://github.com/hasura/graphql-engine/issues/6918
I've been doing tests in the last few hours and have seen that one-to-one relationship inserts with the foreign key on the "child" table are now working on cloud. I can't find any other info about this pushed to production besides this: #6918
Insert works fine. What they are talking here is for updates, which isn't possible yet.
Could someone enlighten of how this RFC pertains to pre-filled columns from session variables, that need joining with a relation? E.g. insert user setting, given session variable auth0 user id, should prefill user_id
in settings, to the session id -> users.{idp_id => id }
.
Anyone looking at this?
commenting just to keep this RFC alive. Much valued feature imo
Another bump because I'd love to see this feature!
Any updates on this one? Been a couple of years and highly desired feature. Thanks to the team for a splendid Hasura!
Bumping this up! would love to use this feature instead of a workaround.
Looking forward to this feature! thanks to Hasura team