Returns an array of all values for the selected field among for each document in that group.

  • Parameters

    • collection: unknown[]

      The input array

    • expr: unknown

      The right-hand side expression value of the operator

    • options: Options

      The options to use for this operation

    Returns unknown[]