fun <T : Any> MongoCollection<T>.findOne(filter: String = KMongoUtil.EMPTY_JSON): Maybe<T>
(source)fun <T : Any> MongoCollection<T>.findOne(filter: Bson): Maybe<T>
(source)
Finds the first document that match the filter in the collection.
fun <T : Any> MongoCollection<T>.findOne(clientSession: ClientSession, filter: String = KMongoUtil.EMPTY_JSON): Maybe<T>
(source)fun <T : Any> MongoCollection<T>.findOne(clientSession: ClientSession, filter: Bson): Maybe<T>
(source)
Finds the first document that match the filter in the collection.
clientSession
- the client session
fun <T : Any> MongoCollection<T>.findOne(vararg filters: Bson?): Maybe<T>
(source)
Finds the first document that match the filters in the collection.
fun <T : Any> MongoCollection<T>.findOne(clientSession: ClientSession, vararg filters: Bson?): Maybe<T>
(source)
Finds the first document that match the filters in the collection.