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
This is a followup issue of the fix added in 1d1e0f1.
The fix works for direct parent/children relations, but not for objects of the same type deeper down the tree.
Failing Test Case
it('works with child data of the same type down the tree',()=>{constquery=gql` query { todos { id title assignee { id assignedTodos { id title } } } } `;constdata={todos: [{__typename: 'Todo',id: 'some-id',title: 'Do the dishes',assignee: [{__typename: 'Person',id: 'alice',assignedTodos: [{__typename: 'Todo',id: 'some-id',title: 'Do the dishes',}],}],}],};cache.writeQuery({ query, data });constinflatedData=inflateCacheData(cache,cache.readQuery({ query }));expect(inflatedData).toEqual(data);});
The text was updated successfully, but these errors were encountered:
This is a followup issue of the fix added in 1d1e0f1.
The fix works for direct parent/children relations, but not for objects of the same type deeper down the tree.
Failing Test Case
The text was updated successfully, but these errors were encountered: