-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[RFC] nested updates #3852
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
base: master
Are you sure you want to change the base?
[RFC] nested updates #3852
Conversation
|
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! |
|
#669 was the first related issue, may want to add it to the description :) |
|
Deploy preview for hasura-docs ready! Built with commit f1c3c90 |
|
@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 |
|
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? |
@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: #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 |
|
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 |
Description
Propose RFC for nested updates. View RFC
Affected components
Related Issues
insertmutation to link existing data #2952