Var class

Aggregation expression's variable

Var can be used to insert user defined an system variables in aggregation expressions

Inheritance

Constructors

Var(String name)
Creates a variable expression [...]
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

clusterTime → const Var
Current timestamp value. [...]
const Var('CLUSTER_TIME')
current → const Var
The start of the field path being processed in the aggregation pipeline stage. [...]
const Var('CURRENT')
discend → const Var
One of the allowed results of a $redact expression.
const Var('DISCEND')
keep → const Var
One of the allowed results of a $redact expression.
const Var('KEEP')
now → const Var
Current datetime value. [...]
const Var('NOW')
prune → const Var
One of the allowed results of a $redact expression.
const Var('PRUNE')
remove → const Var
A variable which evaluates to the missing value. [...]
const Var('REMOVE')
root → const Var
The root document. [...]
const Var('ROOT')