Skip to content
广告❤️成为赞助商

Other Conditional Constructs

This document describes some common conditional constructs, such as accumulators in grouping.

Accumulators

  • Accumulators, commonly used in the group stage of a pipeline.

ConditionOperators

  • Common operator constructs
  • Includes: cond, multiply, dateToString, mergeObjects, etc.

Facet

  • Class for the $facet pipeline stage, encapsulating Facets and supporting lambda functions.

FillField

  • Build for the $fill stage, supporting lambda functions.

Projections

  • The $project stage build supports lambda. The method returns Bson and can be called via project(Aggregates.project(Bson bson)).

Variable

  • New variables in the $lookup stage, let, support lambda.