Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson • BsonDocumentReader • read
read¶
abstract fun read(name: String): BsonValueReader?
Attempts to read a field named name
.
If such a field exists, an instance of BsonValueReader
is returned. If no such a field exists, null
is returned.
Note that if a field exists and is null
, a instance of BsonValueReader
with a type
of null
is returned.