Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca5f302

Browse files
committed
run snippets
1 parent c972410 commit ca5f302

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 basic_read_modular]
8+
const readDataPipeline = db.pipeline()
9+
.collection("users")
10+
11+
// Execute the pipeline and handle the result
12+
readDataPipeline.execute()
13+
.then((querySnapshot) => {
14+
querySnapshot.forEach((result) => {
15+
console.log(`${result.id} => ${result.data()}`);
16+
});
17+
})
18+
.catch((error) => {
19+
console.error("Error getting documents: ", error);
20+
});
21+
// [END basic_read_modular]

0 commit comments

Comments
 (0)