-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Core data should consider entities resolved during getEntityRecords() as also resolved for the purposes of the individual getEntityRecord() calls.
The problematic part is _fields part of the query. Calling getEntityRecords() without specifying _fields requests a "full" list of entities. If one passes _fields as a part of the query, the API will return only a subset of fields.
After merging #26575, getEntityRecord() will only be resolved by getEntityRecords() if _fields are missing from the query. This a good start, but it would still be possible to resolve specific entities as long as the same or a smaller subset of fields is requested. Otherwise an API round-trip would be required to fetch the missing fields.
One way to implement that would be having a more granular resolution mechanism. Something like "resolution per entity field" instead of "resolution per selector".
Related discussions: