Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IndexOfArray

Index

Properties

Properties

$indexOfArray: [ArrayExpression<any>, any] | [ArrayExpression<any>, any, NumberExpression] | [ArrayExpression<any>, any, NumberExpression, NumberExpression]

Searches an array for an occurrence of a specified value and returns the array index of the first occurrence. If the substring is not found, returns -1.

version

3.4

see

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

Generated using TypeDoc