I wander if there are some features in pymongo which enable attribute-like access in the query result.
For example, I want:
doc = col.find_one({"key": "value"})
print(doc.key) # => "value"
It seems that current API does not support it (which returns python dictionary, instead), or I’ve not carefully read the documentation.
Thanks for all your generous helps!