This is a question for the Apollo-Android library
I have a scenario where I am trying to create a watcher on a query which is defined like this:
val query = apolloClient.query(MyQuery()).toBuilder().responseFetcher(ApolloResponseFetchers.CACHE_ONLY).build()
And then watching this query like this:
I have another query similar to the one above, but its response fetcher is set to NETWORK_ONLY
val remoteFetchQuery = apolloClient.query(MyQuery()).toBuilder().responseFetcher(ApolloResponseFetchers.NETWORK_ONLY).build()
remoteFetchQuery query runs, and updates the cache, it seems that the watcher that I defined earlier does not trigger. Is this a usecase that is supposed to the supported in Android?
From my testing and code inspection it appears that watchers are associated to a query and only respond to the changes made to cache by the query, and not a separate query, even though the database rows affected are the same.