Closed LiLatee closed 7 months ago
Good question!
I don't know yet, but I see something wrong:If the RootQueryType is your root query type, you should add this to your type policy.
This might be it.
See https://ferrygraphql.com/docs/cache-configuration#overriding-root-operation-types-uncommon
Oh my God, you are right! I had that before, but I don't know why I removed it...
After indicating that RootQueryType
is my queryType it works fine ❤️
Hi! I've spent a few hours trying to investigate it and I don't know what's the problem. I have such a function for clearing some list in the cache. It works fine. Stream emits new data with the cleared list of items.
But after adding such TypePolicy to the cache then it does not work.
I mean that the cache is modified properly, but the stream does not emit new data in order to refresh page content. In both cases event is printed in the first screenshot at line 137.
Why is that happening? 🤔