Module: Mongoid::Contextual::Aggregable

Defined in:
lib/mongoid/contextual/aggregable.rb,
lib/mongoid/contextual/aggregable/none.rb,
lib/mongoid/contextual/aggregable/mongo.rb,
lib/mongoid/contextual/aggregable/memory.rb

Defined Under Namespace

Modules: Memory, Mongo, None

Constant Summary collapse

EMPTY_RESULT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  "count" => 0,
  "sum" => 0,
  "avg" => nil,
  "min" => nil,
  "max" => nil,
}.freeze