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
{{ message }}
Repository navigation
Flush on TestOperation does not work if Query Document contains a Fragment #2356
I digged a little bit deeper into this topic and discovered that this problem only occurs when using interfaces with fragment.
For the InMemoryCache it is mandatory to provide all possible types. Is there any way to tell the Test Executor that a fragment for an interface is valid for the actual implementation?
Alternatively, we can maybe tell apollo to ignore the actual types and just return everything we flushed? Will this break other stuff?
Activity
reicheltp commentedon Mar 20, 2025
I digged a little bit deeper into this topic and discovered that this problem only occurs when using interfaces with fragment.
For the InMemoryCache it is mandatory to provide all possible types. Is there any way to tell the Test Executor that a fragment for an interface is valid for the actual implementation?
Alternatively, we can maybe tell apollo to ignore the actual types and just return everything we flushed? Will this break other stuff?