SchemaPipeline.group

Groups documents by some specified expression and outputs to the next stage a document for each distinct grouping. The output documents contain an _id field which contains the distinct group by key. The output documents can also contain computed fields that hold the values of some accumulator expression grouped by the $group‘s _id field. $group does not order its output documents. MongoDB Documentation: https://docs.mongodb.com/manual/reference/operator/aggregation/group/#pipe._S_group

  1. SchemaPipeline group(Bson id, Bson accumulators)
  2. SchemaPipeline group(K id, T[string] accumulators)
    struct SchemaPipeline
    @safe
    group
    (
    K
    T
    )
    (
    K id
    ,
    T[string] accumulators
    )

Meta