run Command
Executes the given command in the context of the current database with the given read preference.
Return
the command result
Parameters
the command to be run
the ReadPreference to be used when executing the command, defaults to MongoDatabase.readPreference
Executes the given command in the context of the current database with the given read preference.
Return
the command result
Parameters
the class to decode each document into
the command to be run
the ReadPreference to be used when executing the command, defaults to MongoDatabase.readPreference
Executes the given command in the context of the current database with the given read preference.
Return
the command result
Parameters
the client session with which to associate this operation
the command to be run
the ReadPreference to be used when executing the command, defaults to MongoDatabase.readPreference
Executes the given command in the context of the current database with the given read preference.
Return
the command result
Parameters
the class to decode each document into
the client session with which to associate this operation
the command to be run
the ReadPreference to be used when executing the command, defaults to MongoDatabase.readPreference
Executes the given command in the context of the current database with the given read preference.
Return
the command result
Parameters
the class to decode each document into
the command to be run
the ReadPreference to be used when executing the command, defaults to MongoDatabase.readPreference
the target document class
Executes the given command in the context of the current database with the given read preference.
Return
the command result
Parameters
the class to decode each document into
the client session with which to associate this operation
the command to be run
the ReadPreference to be used when executing the command, defaults to MongoDatabase.readPreference
the target document class