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 af57314 commit c8455f4Copy full SHA for c8455f4
firestore-next/test.firestore.js
@@ -1352,6 +1352,22 @@ describe("firestore-pipelines", () => {
1352
db = getFirestore(app, "enterprise");
1353
});
1354
1355
+ async function basicRead() {
1356
+ const readDataPipeline = db.pipeline()
1357
+ .collection("users")
1358
+
1359
+ // Execute the pipeline and handle the result
1360
+ readDataPipeline.execute()
1361
+ .then((querySnapshot) => {
1362
+ querySnapshot.forEach((result) => {
1363
+ console.log(`${result.id} => ${result.data()}`);
1364
+ });
1365
+ })
1366
+ .catch((error) => {
1367
+ console.error("Error getting documents: ", error);
1368
1369
+ }
1370
1371
function pipelineConcepts() {
1372
// [START pipeline_concepts]
1373
const pipeline = db.pipeline()
0 commit comments