'Wrap the result in a :class:`~mongoengine.Document` object.'

def next(self):

    if ((self._limit == 0) or self._none):
        raise StopIteration
    raw_doc = self._cursor.next()
    if self._as_pymongo:
        return self._get_as_pymongo(raw_doc)
    doc = self._document._from_son(raw_doc, _auto_dereference=self._auto_dereference, only_fields=self.only_fields)
    if self._scalar:
        return self._get_scalar(doc)
    return doc
