mongokit
mongokit copied to clipboard
when i use find(),i find that this method return a cursor obj like pymongo,so why did not provide the common interface for document's method?
my english ois poor
when i want find a user or a user list from mongodb with mongokit, i thougnt that the usage would be something like blew
user=comnnect.User() result-user.find_one({'name': u'jft'}) results=user.find() #result is dict #results is list
actually the fact is something like below:
user=comnnect.User result-user.find_one({'name': u'jft'}) results=user.find() #result is cursor obj #results is cursor obj
so i am confused, why design and provide the method like this
@johnpaulett @namlook @d0ugal