Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jun 3, 2024
1 parent 383b912 commit dd17480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs-main/read-data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ magnetar.collection('pokedex').sum // { base: { HP: 9696 } }
You can also fetch the average of a field in a collection:

```js
const average = await magnetar.collection('pokedex').fetchSum('base.HP') // 64.2
const average = await magnetar.collection('pokedex').fetchAverage('base.HP') // 64.2

// after fetching, the average is also available at `.average`:
magnetar.collection('pokedex').average // { base: { HP: 64.2 } }
Expand Down

0 comments on commit dd17480

Please sign in to comment.