public final class GraphLookupOptions extends Object
Constructor | Description |
---|---|
GraphLookupOptions() |
Modifier and Type | Method | Description |
---|---|---|
GraphLookupOptions |
depthField(String field) |
The name of the field in which to store the depth value
|
String |
getDepthField() |
|
Integer |
getMaxDepth() |
|
Bson |
getRestrictSearchWithMatch() |
|
GraphLookupOptions |
maxDepth(Integer max) |
Specifies a maximum recursive depth for the $graphLookup.
|
GraphLookupOptions |
restrictSearchWithMatch(Bson filter) |
A document specifying additional conditions for the recursive search
|
String |
toString() |
public GraphLookupOptions depthField(@Nullable String field)
field
- the field namepublic GraphLookupOptions maxDepth(@Nullable Integer max)
max
- the maximum depthpublic GraphLookupOptions restrictSearchWithMatch(@Nullable Bson filter)
filter
- the filter expression@Nullable public Bson getRestrictSearchWithMatch()