Skip to content

Commit 0cd7a2e

Browse files
committed
consistent casing and run snippets
1 parent dfa77bf commit 0cd7a2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

firestore-temp/test.firestore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ describe("firestore-pipelines", () => {
126126
const cities = await db.pipeline()
127127
.collection("cities")
128128
.aggregate({
129-
accumulators: [field("population").sum().as("total_population")],
129+
accumulators: [field("population").sum().as("totalPopulation")],
130130
groups: ["location.state"]
131131
})
132-
.where(field("total_population").greaterThan(10000000))
132+
.where(field("totalPopulation").greaterThan(10000000))
133133
.execute();
134134
// [END where_having_example]
135135
console.log(cities);

snippets/firestore-temp/test-firestore/where_having_example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
const cities = await db.pipeline()
99
.collection("cities")
1010
.aggregate({
11-
accumulators: [field("population").sum().as("total_population")],
11+
accumulators: [field("population").sum().as("totalPopulation")],
1212
groups: ["location.state"]
1313
})
14-
.where(field("total_population").greaterThan(10000000))
14+
.where(field("totalPopulation").greaterThan(10000000))
1515
.execute();
1616
// [END where_having_example_modular]

0 commit comments

Comments
 (0)