[4.0] Only set the partial
flag if returnPartialData
is set on query options.
#12332
Labels
Milestone
Currently the
partial
flag is set on the emitted result if the emitted result is notcomplete
(according to the return value ofcache.diff
). In the default behavior or cases where users setreturnPartialData
explicitly tofalse
, this behavior makes no sense. Instead, this flag should only be used whenreturnPartialData
is set on options.As part of this work, we should also consider renaming this flag to
complete
to avoid ambiguity on whatdata: undefined
means. If the cache has no data for a given query, is it considered partial? Or is a query only considered partial when at least one field can be fulfilled from the cache, but not all of them. Moving tocomplete
helps avoid this ambiguity.The text was updated successfully, but these errors were encountered: