KtMongo
Toggle table of contents
common
jvm
Target filter
common
jvm
Switch theme
Search in API
Skip to content
KtMongo
Kotlin BSON • Compatibility with the official MongoDB implementation
/
opensavvy.ktmongo.bson.official
/
BsonFactory
/
readDocument
read
Document
common
jvm
@
LowLevelApi
expect
open
override
fun
readDocument
(
bytes
:
ByteArray
)
:
BsonDocument
(
source
)
@
LowLevelApi
expect
open
override
fun
readDocument
(
document
:
BsonDocument
)
:
BsonDocument
(
source
)
fun
readDocument
(
official
:
BsonDocument
)
:
BsonDocument
(
source
)
Wraps a
org.bson.BsonDocument
from the official MongoDB driver into its KtMongo equivalent.
@
LowLevelApi
actual
open
override
fun
readDocument
(
bytes
:
ByteArray
)
:
BsonDocument
(
source
)
@
LowLevelApi
actual
open
override
fun
readDocument
(
document
:
BsonDocument
)
:
BsonDocument
(
source
)