Skip to content

Commit 5dc299e

Browse files
authored
docs(firestore): disambiguate arrayUnion and arrayRemove info (#6125)
Clarify the language that "exists" is about the value, not about the array.
1 parent 4060827 commit 5dc299e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/firestore/usage/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ firestore().doc('users/ABC').update({
437437
Cloud Firestore also allows for storing arrays. To help manage the values with an array (adding or removing) the API
438438
exposes an `arrayUnion` and `arrayRemove` methods on the [`FieldValue`](/reference/firestore/fieldvalue) class.
439439

440-
To add a new value to an array (if it does not exist):
440+
To add a new value to an array (if value does not exist, will not add duplicate values):
441441

442442
```js
443443
firestore()
@@ -447,7 +447,7 @@ firestore()
447447
});
448448
```
449449

450-
To remove a value from the array (if it exists):
450+
To remove a value from the array (if the value exists):
451451

452452
```js
453453
firestore()

0 commit comments

Comments
 (0)