emattias
04/16/2019, 1:49 PMtype ItemHierarchyNode {
id: ID!
name: String!
children: [ItemHierarchyNode!]!
}
and the root node always has id of root
. Depending on variables sent in to the graphql query children
will or will not be an empty list on the root node (with the same id=root
). This messes up apollo cache because it doesnt update the cache once root has been cached.
What is the recommended way to handle this, other than not caching at all?