isObjectId

fun isObjectId(key: String): Boolean

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

Return

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

Parameters

key

the key