File tree Expand file tree Collapse file tree 3 files changed +91
-89
lines changed Expand file tree Collapse file tree 3 files changed +91
-89
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ declare module './database' {
3737/**
3838 * Executes this pipeline and returns a Promise to represent the asynchronous operation.
3939 *
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
4141 * and retrieve the results (or handle any errors) asynchronously.
4242 *
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
4546 * stages of the pipeline, however this might differ depending on the stages involved in the
4647 * pipeline. For example:
4748 *
@@ -57,9 +58,11 @@ declare module './database' {
5758 * <p>Example:
5859 *
5960 * ```typescript
60- * const futureResults = await execute(firestore.pipeline().collection("books")
61+ * const snapshot: PipelineSnapshot = await execute(firestore.pipeline().collection("books")
6162 * .where(gt(field("rating"), 4.5))
6263 * .select("title", "author", "rating"));
64+ *
65+ * const results: PipelineResults = snapshot.results;
6366 * ```
6467 *
6568 * @param pipeline The pipeline to execute.
You can’t perform that action at this time.
0 commit comments