Function to recursively convert a BsonDocument to a Map[String, Any].
Function to recursively convert a BsonDocument to a Map[String, Any].
The keys will be the field names, the values willbe converted to the correpsonding scala types whenever possible.
The bson-scala type mappings are as follows: - BsonBoolean -> Boolean - BsonInt32 -> Int - BsonInt64 -> Long - BsonDouble -> Double - BsonString -> String - BsonDocument -> Map[String, Any] - anything else -> BsonValue
(Since version ) see corresponding Javadoc for more information.