This change removes the read_preference parameter from various command helpers on the Collection object. Those options were never shipped in a PyMongo release. It also documents which helpers obey Collection.read_preference. The bigger change is the removal of the read_preference, tag_sets, and secondary_acceptable_latency_ms params from find() and find_one() - a major backward breaking change. Collection.with_options is intended to replace their use. coll.find(read_preference=ReadPreference.SECONDARY) changes to coll.with_options(read_preference=ReadPreference.SECONDARY).find() |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| errors.py | ||
| grid_file.py | ||