kmongo / org.litote.kmongo / graphLookup

graphLookup

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

Parameters

from - the collection to query

startWith - the expression to start the graph lookup with

connectFromField - the from field

connectToField - the to 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