Find methos not working

HI, I was working on a projectwhen I noticed that while the find_one method correctly retrieve an element the find() does not retrieve anything even with the same arguments.

Any Idea why this?

In the image you can see that both find_one, found something while the find method retrieved 0 elements

I don’t typically use python but it seems that the find() call is returning a cursor you’ll then need to iterate over and the find_one() is returning a single object so just returning that.

See examples here:

2 Likes

Your second link there is probably close to spam, calling your own website the “finest learning platform” on what seems to be a link to get work for yourself.

1 Like