Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Fixed
-
3.0
-
None
-
None
Description
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