The type of bulkGet is more or less Array (Id doc) -> Array doc. That's a bit too optimistic. Just having a key for something doesn't mean we also have the document. It could have been deleted or not have been synced yet (eventual consistency something something). Maybe the return type ought to be Array (Maybe doc)?
The type of bulkGet is more or less
Array (Id doc) -> Array doc. That's a bit too optimistic. Just having a key for something doesn't mean we also have the document. It could have been deleted or not have been synced yet (eventual consistency something something). Maybe the return type ought to beArray (Maybe doc)?