- Reference >
- MongoDB\Collection Class >
- MongoDB\Collection::getReadConcern()
MongoDB\Collection::getReadConcern()
New in version 1.2.
On this page
Definition
-
MongoDB\Collection::getReadConcern
Returns the read concern for this collection.
Return Values
A MongoDB\Driver\ReadConcern object.
Example
The output would then resemble:
object(MongoDB\Driver\ReadConcern)#5 (1) {
["level"]=>
string(8) "majority"
}