You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that list operations are not working in a current project. Since I can't share the source code, I've created a sample project to reproduce the issue.
Thanks for putting the reproduction together! I took a look and it seems like the reason the mutation isn't working is because the field that has been tagged with @list doesn't have an ID. I'm surprised to hear that ever worked but that's okay.
The best way to solve this is something that Houdini doesn't yet support so I am going to change the title a bit to reflect the feature. Let's use the query from your reproduction as an example
todos is an object with data as a field. There is no key for the object value of todos, and so the id of the parent is not being correctly computed.
The solution is to have houdini augment the schema definition for every objec type to have an __id field that the cache would resolve as a special case to encode the correct ID. You would pass to a new directive that functions similarly to @parentID but instead circumvents all of the indirect lookups:
Describe the bug
I've noticed that list operations are not working in a current project. Since I can't share the source code, I've created a sample project to reproduce the issue.
Severity
serious, but I can work around it
Steps to Reproduce the Bug
Expected Behaviour
The item appears in the list below.
Reproduction
https://github.com/nquirmbach-ebiz/houdini-playgrund
The text was updated successfully, but these errors were encountered: