$$NOW

Reference type:Cheat sheetFormat:Syntax + example + use case

Reference group: Date expressions

What it does

Provides a consistent current datetime value throughout a pipeline.

Syntax

System variable

Use case

Stamp a batch with one consistent processing time.

$$NOW: practical example
{ $set: { processedAt: "$$NOW" } }
💡 Explanation Provides a consistent current datetime value throughout a pipeline. When to use it Stamp a batch with one consistent processing time.
Key Takeaways
  • Provides a consistent current datetime value throughout a pipeline.
  • Typical use: Stamp a batch with one consistent processing time.