DynamoDB Dynomite Querying Math Methods

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)