mongokit icon indicating copy to clipboard operation
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?

Open linjianpanghu opened this issue 9 years ago • 1 comments

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

linjianpanghu avatar Nov 16 '16 05:11 linjianpanghu

@johnpaulett @namlook @d0ugal

linjianpanghu avatar Nov 16 '16 05:11 linjianpanghu