MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _has_next

Method _has_next

pymongo/synchronous/command_cursor.py:119–123  ·  view source on GitHub ↗

Returns `True` if the cursor has documents remaining from the previous batch.

(self)

Source from the content-addressed store, hash-verified

117 return self
118
119 def _has_next(self) -> bool:
120 """Returns `True` if the cursor has documents remaining from the
121 previous batch.
122 """
123 return len(self._data) > 0
124
125 @property
126 def _post_batch_resume_token(self) -> Optional[Mapping[str, Any]]:

Calls

no outgoing calls