graph Lookup
fun <TExpression, FROM : Any> graphLookup(from: MongoCollection<FROM>, startWith: TExpression, connectFromField: KProperty1<FROM, Any?>, connectToField: KProperty1<FROM, Any?>, fieldAs: String, options: GraphLookupOptions = GraphLookupOptions()): Bson
fun <TExpression, FROM : Any> graphLookup(from: MongoCollection<FROM>, startWith: TExpression, connectFromField: KProperty1<FROM, Any?>, connectToField: KProperty1<FROM, Any?>, fieldAs: String, options: GraphLookupOptions = GraphLookupOptions()): Bson
Creates a graphLookup pipeline stage for the specified filter
Return
the $graphLookup pipeline stage @mongodb.driver.manual reference/operator/aggregation/graphLookup/ $graphLookup @mongodb.server.release 3.4
Parameters
from
the collection to query
start With
the expression to start the graph lookup with
connect From Field
the data class from field
connect To Field
the data class to field
field As
name of field in output document
options
optional values for the graphLookup