Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One of the variants of api.find() has a the “fields” parameter where you can define which columns you want to summarize. See the API documentationYou can pass a map into this parameter in the format ['attribute' : 'aggregation type'], where aggregation type can be one of SUM, AVG, MIN or MAX. See the api.find() API documentation for more info.