Var class

Aggregation expression's variable

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

Inheritance

Constructors

Var.new(String name)
Creates a variable expression
const

Properties

hashCode int
The hash code for this object.
no setterinherited
rawContent String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

clusterTime → const Var
Current timestamp value.
current → const Var
The start of the field path being processed in the aggregation pipeline stage.
descend → const Var
One of the allowed results of a $redact expression.
keep → const Var
One of the allowed results of a $redact expression.
now → const Var
Current datetime value.
prune → const Var
One of the allowed results of a $redact expression.
remove → const Var
A variable which evaluates to the missing value.
root → const Var
The root document.
searchMeta → const Var
A variable that stores the metadata results of an Atlas Search query. In all supported aggregation pipeline stages, a field set to the variable $$SEARCH_META returns the metadata results for the query.
userRoles → const Var
Returns the roles assigned to the current user.