Meine Bibliothek-Dokumente

Multi-Root-Seitenleiste

flex-layout

  • Getting Started

  • Guides

  • Reference

typed-rx-http

  • Getting Started

  • Guides

  • Reference

global-rx-state

  • Getting Started

  • Guides

  • Reference

webflux-fe-dev-assistant

reactive-mongo-dsl

$lookup

Konfigurieren Sie einfache Joins und LookupSpec basierend auf let/pipeline, Driver-native Rohstufen, unwind und Lookup-Zählflüsse.


localField / foreignField
java
let + pipeline + $expr
java

bindConditionFields(leftField, condition, rightField)

bindConditionFieldsLeftToObjectId(...)

bindConditionConst, bindConditionBetween, bindConditionLike

bindConditionExists, bindConditionIsNull, bindConditionIsNotNull

rawStage(Bson) für Driver-native Lookup-Pipeline-Stufen

unwind(preserveNullAndEmptyArrays)

outerStage(Bson) / outerStages(...) für Stufen nach $lookup

Lookup ausführen
java

unwind(...)를 사용하지 않은 기본 findAll lookup은 right 결과를 List<R>로 반환합니다. 단건 left/right가 필요하면 find().executeLookup(...) 경로를 사용합니다.

Lookup + count / exists
java

executeLookupAndCount(...) gibt data und totalCount in der Form $facet(data, count) zurück. Der count/exists Builder kann auch Lookup-Ergebnisse als linkes/rechtes Tuple empfangen.

© 2026 Byeolnaerim. Alle Rechte vorbehalten.EinführungDatenschutzrichtlinie