When running client.watchFragment, the result returned from the observable reports the result as complete: true when the from object is not identifiable (i.e. cache.identify returns undefined). The data object is empty and is correct, but we should also reflect this in the complete and missing properties as well.
Issue Description
When running
client.watchFragment
, the result returned from the observable reports the result ascomplete: true
when thefrom
object is not identifiable (i.e.cache.identify
returnsundefined
). Thedata
object is empty and is correct, but we should also reflect this in thecomplete
andmissing
properties as well.Link to Reproduction
https://github.com/apollographql/apollo-client/pull/12002
Reproduction Steps
See the failing test for the example
@apollo/client
version3.11.4