firebase / firebase/firebase-js-sdk

FR: Firestore getAll() to retrieve multiple documents at once.

Open
#1,176 6 comments 29 reactions 0 assignees View on GitHub
api: firestore feature request
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: macOS
* Browser version: chrome Version 67.0.3396.99
* Firebase SDK version: 5.4.1
* Firebase Product: firestore

### [REQUIRED] Describe the problem
A feature request for Firestore transaction.getAll
according to documentation transaction.getAll supported by Node.JS
https://cloud.google.com/nodejs/docs/reference/firestore/0.15.x/Transaction#getAll

I though it's available on web sdk but got error.. ( transaction.getAll is not a function )

Already use Promise.all(transaction.get(ref1),transaction.get(ref2),transaction.get(ref3))
and its working fine as alternative solution.

So it not that important FR, but i didn't understand why exist on Node but not on web sdk.

thanks

Contributor guide

Open the contributing guide

Research direction

Start by comparing the Firestore web SDK transaction API with the Node.js Transaction.getAll documentation linked in the issue. Review how transaction.get is exposed and use the reported Promise.all alternative as the behavioral reference; done means web transactions can retrieve multiple document references through getAll without the current “not a function” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.