MergeObjects class
$mergeObjects
operator
Combines multiple documents into a single document.
- When used as a
$group
stage accumulator,$mergeObjects
has the following form:
{ $mergeObjects: <document> }
- When used in other expressions, including in the $group stage but not as an accumulator:
{ $mergeObjects: [ <document1>, <document2>, ... ] }
The
- Inheritance
-
- Object
- AggregationExpr
- Operator
- Accumulator
- MergeObjects
Constructors
- MergeObjects(dynamic objects)
-
Creates
$mergeObjects
operator expression
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → Map< String, dynamic> -
inherited
-
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