Skip to content

Commit 59fd29c

Browse files
committed
add import note
1 parent ca4024e commit 59fd29c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

firestore-next/test.firestore.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,6 +2136,10 @@ describe("firestore-pipelines", () => {
21362136

21372137
async function basicRead() {
21382138
// [START basic_read]
2139+
// The import/require of "firebase/firestore/pipelines" has a side-effect
2140+
// of extending the Firestore class with the `.pipeline()` method.
2141+
// Without this import/require, you will not be able to create a Pipeline.
2142+
// import { execute } from "firebase/firestore/pipelines";
21392143
const readDataPipeline = db.pipeline()
21402144
.collection("users");
21412145

snippets/firestore-next/test-firestore/basic_read.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
// 'npm run snippets'.
66

77
// [START basic_read_modular]
8+
// The import/require of "firebase/firestore/pipelines" has a side-effect
9+
// of extending the Firestore class with the `.pipeline()` method.
10+
// Without this import/require, you will not be able to create a Pipeline.
11+
// import { execute } from "firebase/firestore/pipelines";
812
const readDataPipeline = db.pipeline()
913
.collection("users");
1014

0 commit comments

Comments
 (0)