kmongo / org.litote.kmongo.rxjava2 / com.mongodb.reactivestreams.client.MongoDatabase / runCommand

runCommand

fun <reified TResult : Any> MongoDatabase.runCommand(command: String, readPreference: ReadPreference): Maybe<TResult> (source)

Executes the given command in the context of the current database with the given read preference.

Parameters

command - the command to be run

readPreference - the {@link com.mongodb.ReadPreference} to be used when executing the command

Parameters

fun <reified TResult : Any> MongoDatabase.runCommand(command: String): Maybe<TResult> (source)

Executes the given command in the context of the current database with the given read preference.

Parameters

command - the command to be run

Parameters