MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / next

Method next

gridfs/asynchronous/grid_file.py:1981–1985  ·  view source on GitHub ↗

Get next GridOut object from cursor.

(self)

Source from the content-addressed store, hash-verified

1979 )
1980
1981 async def next(self) -> AsyncGridOut:
1982 """Get next GridOut object from cursor."""
1983 _disallow_transactions(self.session)
1984 next_file = await super().next()
1985 return AsyncGridOut(self._root_collection, file_document=next_file, session=self.session)
1986
1987 async def to_list(self, length: Optional[int] = None) -> list[AsyncGridOut]:
1988 """Convert the cursor to a list."""

Callers 5

to_listMethod · 0.95
readchunkMethod · 0.45
_read_size_or_lineMethod · 0.45
_next_with_retryMethod · 0.45
nextMethod · 0.45

Calls 2

AsyncGridOutClass · 0.85
_disallow_transactionsFunction · 0.70

Tested by

no test coverage detected