Options
All
  • Public
  • Public/Protected
  • All
Menu

Module operators/accumulator/addToSet

Index

Functions

Functions

$addToSet

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

    Parameters

    • collection: RawObject[]

      The input array

    • expr: unknown

      The right-hand side expression value of the operator

    • Optional options: Options

      The options to use for this operation

    Returns RawObject[]

Generated using TypeDoc