Group

reactivemongo.api.commands.AggregationFramework.Group$
See theGroup companion class
object Group

$groups documents together to calculate aggregates on document collections .

This command aggregates on arbitrary identifiers. Document fields identifier must be prefixed with $.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Group.type

Members list

Concise view

Value members

Concrete methods

def apply(identifiers: Value)(ops: (String, GroupFunction)*): Group

Attributes

identifiers

any BSON value acceptable by mongodb as identifier

ops

the sequence of operators specifying aggregate calculation

def apply(idField: String)(ops: (String, GroupFunction)*): Group

Attributes

idField

the name of the ID field (without $ prefix)

ops

the sequence of operators specifying aggregate calculation