Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Map

Index

Properties

Properties

$map: { input: ArrayExpression<any>; as?: string; in: any }

Applies a subexpression to each element of an array and returns the array of resulting values in order. Accepts named parameters.

see

https://docs.mongodb.com/manual/reference/operator/aggregation/map/#mongodb-expression-exp.-map

Type declaration

  • input: ArrayExpression<any>

    An expression that resolves to an array.

  • Optional as?: string

    A name for the variable that represents each individual element of the input array. If no name is specified, the variable name defaults to this.

  • in: any

    An expression that is applied to each element of the input array. The expression references each element individually with the variable name specified in as.

Generated using TypeDoc