Skip to content

Adding documentation for WriteBatch size limit #1715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/firebase/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6047,7 +6047,8 @@ declare namespace firebase.firestore {

/**
* Creates a write batch, used for performing multiple writes as a single
* atomic operation.
* atomic operation. The maximum number of writes that can be passed to a
* commit operation or performed in a transaction is 500.
*
* @return
* A `WriteBatch` that can be used to atomically execute multiple writes.
Expand Down
6 changes: 5 additions & 1 deletion packages/firestore-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ export class FirebaseFirestore {

/**
* Creates a write batch, used for performing multiple writes as a single
* atomic operation.
* atomic operation. The maximum number of writes that can be passed to a
* commit operation or performed in a transaction is 500.
*
* @return
* A `WriteBatch` that can be used to atomically execute multiple writes.
*/
batch(): WriteBatch;

Expand Down