find()
official link
for doc in db.tasks.find(filter={'state':'successful'},projection=['analysis.bandgap']):
print doc
I tried to set projection as a list or dict, but neither will work for limit the output of find(). How to set projection properly?