run Command
Executes the given command in the context of the current database with a read preference of ReadPreference.primary.
Parameters
the command to be run
Executes the given command in the context of the current database with the given read preference.
Parameters
the command to be run
the com.mongodb.ReadPreference to be used when executing the command
Executes the given command in the context of the current database with a read preference of ReadPreference.primary.
Parameters
the command to be run
the default class to cast any documents returned from the database into.
Executes the given command in the context of the current database with the given read preference.
Parameters
the command to be run
the com.mongodb.ReadPreference to be used when executing the command
the default class to cast any documents returned from the database into.
Executes the given command in the context of the current database with a read preference of ReadPreference.primary.
Since
3.6
Parameters
the client session with which to associate this operation
the command to be run
Executes the given command in the context of the current database with the given read preference.
Since
3.6
Parameters
the client session with which to associate this operation
the command to be run
the ReadPreference to be used when executing the command
Executes the given command in the context of the current database with a read preference of ReadPreference.primary.
Since
3.6
Parameters
the client session with which to associate this operation
the command to be run
the default class to cast any documents returned from the database into.
Executes the given command in the context of the current database with the given read preference.
Since
3.6
Parameters
the client session with which to associate this operation
the command to be run
the com.mongodb.ReadPreference to be used when executing the command
the default class to cast any documents returned from the database into.