fun <TExpression> graphLookup(from: String, startWith: TExpression, connectFromField: String, connectToField: String, fieldAs: String, options: GraphLookupOptions = GraphLookupOptions()): Bson
(source)
Creates a graphLookup pipeline stage for the specified filter
from
- the collection to query
startWith
- the expression to start the graph lookup with
connectFromField
- the from field
fieldAs
- name of field in output document
options
- optional values for the graphLookup
Parameters
Return
the $graphLookup pipeline stage
Mongodb
.driver.manual reference/operator/aggregation/graphLookup/ $graphLookup