Skip to content

Commit 5b39cdc

Browse files
committed
chore(firestore): update methods
1 parent f1130e9 commit 5b39cdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/firebase-firestore/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ import { firebase } from '@nativescript/firebase-core';
199199

200200
firebase().firestore()
201201
.collection('users')
202-
.where('age', isGreaterThan: 20)
202+
.where('age', '>', 20)
203203
.get()
204204
.then(...);
205205

@@ -212,7 +212,7 @@ import { firebase } from '@nativescript/firebase-core';
212212

213213
firebase().firestore()
214214
.collection('users')
215-
.where('language', arrayContainsAny: ['en', 'it'])
215+
.where('language', 'array-contains-any', ['en', 'it'])
216216
.get()
217217
.then(...);
218218
```
@@ -296,7 +296,7 @@ Cloud Firestore does not support the following types of queries:
296296

297297
- Queries with range filters on different fields, as described in the previous section.
298298
- Logical OR queries. In this case, you should create a separate query for each OR condition and merge the query results in your app.
299-
- Queries with a != clause. In this case, you should split the query into a greater-than query and a less-than query. For example, the query clause where("age", isNotEqualTo: 30) is not supported, however you can get the same result set by combining two queries, one with the clause where("age", isLessThan: 30) and one with the clause where("age", isGreaterThan: 30)
299+
- Queries with a != clause. In this case, you should split the query into a greater-than query and a less-than query. For example, the query clause where("age", '!=', 30) is not supported, however you can get the same result set by combining two queries, one with the clause where("age", '<', 30) and one with the clause where("age", '>', 30)
300300

301301
### Writing Data
302302

0 commit comments

Comments
 (0)