Skip to content

HasSet

interface HasSet<Document : Any> : Pipeline<Document> 

Pipeline implementing the $set stage.

Inheritors

Properties

context

The context used to generate this pipeline.

Functions

reinterpret

Changes the type of the returned document, with no type-safety.

set

open fun set(block: SetStageOperators<Document>.() -> Unit): Pipeline<Document>

Adds new fields to documents, or overwrites existing fields.

External resources

toString

abstract override fun toString(): String

JSON representation of this pipeline.

withStage

Creates a new pipeline that expands on the current one by adding stage.

writeTo

@LowLevelApi
abstract fun writeTo(writer: BsonValueWriter)

Writes the entire pipeline into writer.