isBoolean

fun isBoolean(key: String): Boolean

Returns true if the value of the key is a BsonBoolean, returns false if the document does not contain the key.

Return

true if the value of the key is a BsonBoolean, returns false if the document does not contain the key.

Parameters

key

the key