Method: Mongo::Collection#read_concern

Defined in:
lib/mongo/collection.rb

#read_concernHash

Get the read concern for this collection instance.

Examples:

Get the read concern.

collection.read_concern

Returns:

  • (Hash)

    The read concern.

Since:

  • 2.2.0



144
145
146
# File 'lib/mongo/collection.rb', line 144

def read_concern
  options[:read_concern] || database.read_concern
end