Read How to read individual documents.

Use the helper function below to query an array of document IDs. This is especially useful when you have a many-to-many data model that references IDs from a separate collection.

file_type_js_official firestore.js
// Helper: Reads an array of IDs from a collection concurrently
const readIds = async (collection, ids) => {
    const reads = => collection.doc(id).get() );
    const result = await Promise.all(reads);
    return =>;


Ask questions via GitHub below OR chat on Slack #questions