diff --git a/reference/mongo/mongocollection/aggregatecursor.xml b/reference/mongo/mongocollection/aggregatecursor.xml index 7e1052e6e2..4ff2f5aba4 100644 --- a/reference/mongo/mongocollection/aggregatecursor.xml +++ b/reference/mongo/mongocollection/aggregatecursor.xml @@ -22,6 +22,14 @@ just like the MongoCursor objects that are returned by the MongoCollection::find method. + + + The resulting MongoCommandCursor will inherit this + collection's read preference. + MongoCommandCursor::setReadPreference may be used + to change the read preference before iterating on the cursor. + + diff --git a/reference/mongo/queries.xml b/reference/mongo/queries.xml index 32ced31d78..b33c7c2556 100644 --- a/reference/mongo/queries.xml +++ b/reference/mongo/queries.xml @@ -22,7 +22,7 @@ Specifically by calling MongoClient::setReadPreference At the database level with MongoDB::setReadPreference At the collection level with MongoCollection::setReadPreference - At the cursor level with MongoCursor::setReadPreference + At the cursor level with MongoCursor::setReadPreference or MongoCommandCursor::setReadPreference Each class inherits its read preference setting from the "parent" context.