File tree 3 files changed +91
-89
lines changed
3 files changed +91
-89
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ declare module './database' {
37
37
/**
38
38
* Executes this pipeline and returns a Promise to represent the asynchronous operation.
39
39
*
40
- * <p> The returned Promise can be used to track the progress of the pipeline execution
40
+ * The returned Promise can be used to track the progress of the pipeline execution
41
41
* and retrieve the results (or handle any errors) asynchronously.
42
42
*
43
- * <p>The pipeline results are returned as a list of {@link PipelineResult} objects. Each {@link
44
- * PipelineResult} typically represents a single key/value map that has passed through all the
43
+ * The pipeline results are returned as a {@link PipelineSnapshot} that contains
44
+ * a list of {@link PipelineResult} objects. Each {@link PipelineResult} typically
45
+ * represents a single key/value map that has passed through all the
45
46
* stages of the pipeline, however this might differ depending on the stages involved in the
46
47
* pipeline. For example:
47
48
*
@@ -57,9 +58,11 @@ declare module './database' {
57
58
* <p>Example:
58
59
*
59
60
* ```typescript
60
- * const futureResults = await execute(firestore.pipeline().collection("books")
61
+ * const snapshot: PipelineSnapshot = await execute(firestore.pipeline().collection("books")
61
62
* .where(gt(field("rating"), 4.5))
62
63
* .select("title", "author", "rating"));
64
+ *
65
+ * const results: PipelineResults = snapshot.results;
63
66
* ```
64
67
*
65
68
* @param pipeline The pipeline to execute.
You can’t perform that action at this time.
0 commit comments