diff --git a/examples/search+json.js b/examples/search+json.js index adc298289c..a2ed39b1d9 100644 --- a/examples/search+json.js +++ b/examples/search+json.js @@ -43,7 +43,7 @@ async function searchPlusJson() { // documents: [...] // } - // Some aggrigrations + // Some aggregrations console.log( await client.ft.aggregate('users', '*', { STEPS: [{ @@ -51,7 +51,7 @@ async function searchPlusJson() { REDUCE: [{ type: AggregateGroupByReducers.AVG, property: '$.age', - AS: 'avarageAge' + AS: 'averageAge' }, { type: AggregateGroupByReducers.SUM, property: '$.coins', @@ -63,7 +63,7 @@ async function searchPlusJson() { // { // total: 2, // results: [{ - // avarageAvg: '27.5', + // averageAge: '27.5', // totalCoins: '115' // }] // }