graphLookup

fun <TExpression> graphLookup(from: String, startWith: TExpression, connectFromField: String, connectToField: String, fieldAs: String, options: GraphLookupOptions = GraphLookupOptions()): Bson

Creates a graphLookup pipeline stage for the specified filter

Return

the $graphLookup pipeline stage

Parameters

the expression type
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