BsonContext

BSON configuration for the objects generated by the DSL.

This object is passed through the entire DSL to allow accessing the configuration from anywhere during request generation.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun <T : Any> encode(obj: T, type: KType): BsonDocument
Link copied to clipboard
abstract fun newId(): ObjectId
Link copied to clipboard
abstract fun pathOf(property: KProperty1<*, *>): Path

Generates the name of a property.

Link copied to clipboard
open fun readArray(array: BsonArray): BsonArray
Link copied to clipboard
Link copied to clipboard
open fun readValue(value: BsonValue): BsonValue