'$in' operator expression. Tests for an attribute to be equal to at least one value in a list of values.

{a: {$in: [1,2,3,4]} }

This is semantically equivalent to:

{$or: [{a:{$eq:1}},{a:{$eq:2}},{a:{$eq:3}},{a:{$eq:4}}]}}

Hierarchy

  • InExpression

Properties

Properties

$in: readonly SimpleValue[]

List of values to check against.

Generated using TypeDoc