My document structure is something like this....
I ran this query
test_run_names = self._database.suiteruns.find({'user': user_id, {'$or': [{'name': {'$exists': True}},{'name': {'$eq': ""}}]}})
test_run_names is of type cursor.
How can i iterate over it and get the attributes i need ?
What i did ?
for t in test_run_names
print (t['name']) #throws a key error
