Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

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? #254

Open
kateier opened this issue Nov 16, 2016 · 1 comment

Comments

@kateier
Copy link

kateier commented Nov 16, 2016

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

@kateier
Copy link
Author

kateier commented Nov 16, 2016

@johnpaulett @namlook @d0ugal

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant