Package com.mongodb.client.model
Class Variable<TExpression>
java.lang.Object
com.mongodb.client.model.Variable<TExpression>
- Type Parameters:
TExpression- the type of the value for the new variable
Helps define new variable for the $lookup pipeline stage
- Since:
- 3.7
- MongoDB documentation
- 3.6
-
Constructor Summary
ConstructorsConstructorDescriptionVariable(String name, TExpression value) Creates a new variable definition for use in $lookup pipeline stagesMethod Summary
-
Constructor Details
-
Variable
Creates a new variable definition for use in $lookup pipeline stages- Parameters:
name- the name of the new variablevalue- the value of the new variable- MongoDB documentation
- $lookup
-
-
Method Details