def find ( self , * args , * * kwargs ) : return Cursor ( self , * args , wrap = self . document_class , * * kwargs )
how to use pymongo query in mongoengine in python
Same as : meth : pymongo . collection . Collection . find except it returns the right document class .
def find(self, *args, **kwargs):
        """Same as :meth:`pymongo.collection.Collection.find`, except
        it returns the right document class.
        """
        return Cursor(self, *args, wrap=self.document_class, **kwargs)