-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 3.0
-
Component/s: None
-
None
Found during MongoEngine upgrading:
import pymongo c = pymongo.MongoClient() db = c["test"] coll = db["test"] coll.find().hint([('tags', 1)]).count() TypeError: passing a dict to sort/create_index/hint is not allowed - use a list of tuples instead. did you mean [('tags', 1)]?
Worked with pymongo 2.8