Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c972410 commit ca5f302Copy full SHA for ca5f302
snippets/firestore-next/test-firestore/basic_read.js
@@ -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