Skip to content

Commit 033b47a

Browse files
committed
Merge branch 'master' of github.com:redis/node-redis
2 parents a0b6ffe + eedce53 commit 033b47a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/search+json.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ async function searchPlusJson() {
4343
// documents: [...]
4444
// }
4545

46-
// Some aggrigrations
46+
// Some aggregrations
4747
console.log(
4848
await client.ft.aggregate('users', '*', {
4949
STEPS: [{
5050
type: AggregateSteps.GROUPBY,
5151
REDUCE: [{
5252
type: AggregateGroupByReducers.AVG,
5353
property: '$.age',
54-
AS: 'avarageAge'
54+
AS: 'averageAge'
5555
}, {
5656
type: AggregateGroupByReducers.SUM,
5757
property: '$.coins',
@@ -63,7 +63,7 @@ async function searchPlusJson() {
6363
// {
6464
// total: 2,
6565
// results: [{
66-
// avarageAvg: '27.5',
66+
// averageAge: '27.5',
6767
// totalCoins: '115'
6868
// }]
6969
// }

0 commit comments

Comments
 (0)