Retrieve multiple items in Firestore
问题 I have the following data structure in Firestore: { items: [ itemId1: {}, itemId2: {}, itemId3: {} ], users: [ userId1: { itemIds: [ "itemId1", "itemId3" ] } ] } The goal of this data structure is for many users to have access to and collaborate on the same items. So moving the items into each user would be rather inefficient and difficult. If I have the userId ( userId1 ), I would like to query the items collection for all items that are within the user's itemIds array. So, in this example,