MongoDB\Driver classes
The MongoDB\Driver namespace includes 14 classes. Four of these classes allow for the manipulation of read and write concerns. Read concerns (https://docs.mongodb.com/manual/reference/read-concern/#read-concern) allow control over which replica set the data is drawn from. Write concerns (https://docs.mongodb.com/manual/reference/write-concern/#write-concern) control the level of acknowledgement between replicas. Read and write concerns are beyond the scope of this chapter, however. Please refer to Chapter 6, Maintaining MongoDB Performance, for more information.
Two of the classes, Command and Query, are value objects: objects which are used primarily as wrappers for various bits of functionality, and then thrown away ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access