From eedce53b158040601a0484569b2d9049f9b4502a Mon Sep 17 00:00:00 2001 From: Simon Prickett Date: Wed, 17 Nov 2021 19:42:57 +0000 Subject: [PATCH] Fixed a few typos. --- examples/search+json.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' // }] // }