Skip to content

Commit 602c44e

Browse files
committed
run snippets
1 parent 794bca0 commit 602c44e

File tree

5 files changed

+61
-0
lines changed

5 files changed

+61
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This snippet file was generated by processing the source file:
2+
// ./firestore-next/test.firestore.js
3+
//
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
6+
7+
// [START four_disjunctions_modular]
8+
query(collectionRef,
9+
or( and( where("a", "==", 1), where("c", "==", 3) ),
10+
and( where("a", "==", 1), where("d", "==", 4) ),
11+
and( where("b", "==", 2), where("c", "==", 3) ),
12+
and( where("b", "==", 2), where("d", "==", 4) )
13+
)
14+
);
15+
// [END four_disjunctions_modular]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This snippet file was generated by processing the source file:
2+
// ./firestore-next/test.firestore.js
3+
//
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
6+
7+
// [START four_disjunctions_compact_modular]
8+
query(collectionRef,
9+
and( or( where("a", "==", 1), where("b", "==", 2) ),
10+
or( where("c", "==", 3), where("d", "==", 4) )
11+
)
12+
);
13+
// [END four_disjunctions_compact_modular]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This snippet file was generated by processing the source file:
2+
// ./firestore-next/test.firestore.js
3+
//
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
6+
7+
// [START one_disjunction_modular]
8+
query(collectionRef, where("a", "==", 1));
9+
// [END one_disjunction_modular]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This snippet file was generated by processing the source file:
2+
// ./firestore-next/test.firestore.js
3+
//
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
6+
7+
// [START or_query_modular]
8+
const query = query(collection(db, "cities"), and(
9+
where('name', '>', 'L'),
10+
or(
11+
where('capital', '==', true),
12+
where('population', '>=', 1000000)
13+
)
14+
));
15+
// [END or_query_modular]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This snippet file was generated by processing the source file:
2+
// ./firestore-next/test.firestore.js
3+
//
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
6+
7+
// [START two_disjunctions_modular]
8+
query(collectionRef, or( where("a", "==", 1), where("b", "==", 2) ));
9+
// [END two_disjunctions_modular]

0 commit comments

Comments
 (0)