MongoDB request DSL • opensavvy.ktmongo.dsl.tree • AbstractCompoundBsonNode • accept
accept¶
Adds a new node
as a child of this one.
Since BsonNode
subtypes may generate arbitrary BSON, it is possible to use this method to inject arbitrary BSON (escaped or not) into any KtMongo DSL. Incorrect BsonNode
implementations can create memory leaks, performance issues, data corruption or data leaks.
We recommend against calling this function directly. Instead, you should find other functions declared on this object (possibly as extensions) that perform the operation you want in safe manner.