We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7cf56 commit 7e4a7e6Copy full SHA for 7e4a7e6
lib/mongo/database.rb
@@ -157,7 +157,7 @@ def collections
157
# @option opts :read [ Hash ] The read preference for this command.
158
# @option opts :session [ Session ] The session to use for this command.
159
#
160
- # @return [ Hash ] The result of the command execution.
+ # @return [ Mongo::Operation::Result ] The result of the command execution.
161
def command(operation, opts = {})
162
txn_read_pref = if opts[:session] && opts[:session].in_transaction?
163
opts[:session].txn_read_preference
0 commit comments