Skip to content

Commit

Permalink
docs: update BulkWriterError documentation (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chen committed May 26, 2021
1 parent 92ea651 commit 0515d1f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion dev/src/index.ts
Expand Up @@ -229,7 +229,7 @@ const MAX_CONCURRENT_REQUESTS_PER_CLIENT = 100;
* [update()]{@link DocumentReference#update} and
* [delete()]{@link DocumentReference#delete} calls in
* [DocumentReference]{@link DocumentReference},
* [WriteBatch]{@link WriteBatch}, [BulkWriter]({@link BulkWriter}, and
* [WriteBatch]{@link WriteBatch}, [BulkWriter]{@link BulkWriter}, and
* [Transaction]{@link Transaction}. Using Preconditions, these calls
* can be restricted to only apply to documents that match the specified
* conditions.
Expand Down Expand Up @@ -305,6 +305,23 @@ const MAX_CONCURRENT_REQUESTS_PER_CLIENT = 100;
* @typedef {Object} BulkWriterOptions
*/

/**
* An error thrown when a BulkWriter operation fails.
*
* The error used by {@link BulkWriter~shouldRetryCallback} set in
* {@link BulkWriter#onWriteError}.
*
* @property {GrpcStatus} code The status code of the error.
* @property {string} message The error message of the error.
* @property {DocumentReference} documentRef The document reference the operation was
* performed on.
* @property {'create' | 'set' | 'update' | 'delete'} operationType The type
* of operation performed.
* @property {number} failedAttempts How many times this operation has been
* attempted unsuccessfully.
* @typedef {Error} BulkWriterError
*/

/**
* Status codes returned by GRPC operations.
*
Expand Down

0 comments on commit 0515d1f

Please sign in to comment.