AbstractOption
abstract class AbstractOption(val name: String, context: BsonContext) : AbstractBsonNode, Option(source)
Helper to implement Option.
To learn more about implementing custom KtMongo operators and options, see AbstractBsonNode. This class behaves similarly: a user only needs to implement write.
An option is immutable and is thus immediately frozen during construction.
Inheritors
Functions
Link copied to clipboard
Makes this node immutable.
Link copied to clipboard
Merges this option with another of the same type.
Link copied to clipboard
Reads the value of this option.
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new BsonDocument.
Link copied to clipboard
Writes the result of simplifying this expression into writer.