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
-
Constructor Summary
ConstructorDescriptionVariable
(String name, TExpression value) Creates a new variable definition for use in $lookup pipeline stages -
Method 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