Reputation: 1
This statement on pymongo version 2.7.2 works just fine:
allFieldsArray = list(fields.find({"persist": "True"}, fields={'name': 1, 'list_name': 1, '_id': 0}))
When I upgraded to 3.0.3, I get this:
TypeError: init() got an unexpected keyword argument 'fields'
Upvotes: 0
Views: 13