graphLookup

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

the expression type
from

the collection to query

startWith

the expression to start the graph lookup with

connectFromField

the data class from field

connectToField

the data class to field

fieldAs

name of field in output document

options

optional values for the graphLookup