Type constructor

Type(
  1. dynamic expr
)

Creates $type operator expression

Returns a string that specifies the BSON type of the argument.

The argument can be any valid expression.

Implementation

Type(expr) : super('type', expr);