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 438539e commit 4e11bdaCopy full SHA for 4e11bda
pymongo/database.py
@@ -161,7 +161,7 @@ def with_options(
161
162
>>> db1.read_preference
163
Primary()
164
- >>> from pymongo import ReadPreference
+ >>> from pymongo.read_preferences import Secondary
165
>>> db2 = db1.with_options(read_preference=Secondary([{'node': 'analytics'}]))
166
167
0 commit comments