-
-
Constructor Summary
Constructors
Constructor |
Description |
Field(String name,
TExpression value) |
Creates a new field definition for use in $addFields pipeline stages
|
-
-
Constructor Detail
-
Field
public Field(String name,
TExpression value)
Creates a new field definition for use in $addFields pipeline stages
- Parameters:
name
- the name of the new field
value
- the value of the new field
- MongoDB documentation
- $addFields
-
Method Detail
-
getName
public String getName()
- Returns:
- the name of the new field