DynamoDB Dynomite Querying Math Methods

Important: These docs are for the outdated Jets 5 versions and below. For the latest Jets docs: docs.rubyonjets.com

Math methods are supported. Examples:

Product.count
Product.average(:price)
Product.min(:price)
Product.max(:price)
Product.sum(:price)

They can be scoped to a chain also.

Product.where(category: "Electronics").count
Product.where(category: "Electronics").average(:price)
Product.where(category: "Electronics").sum(:price)
Product.all.average(:price)