What is a cursor in MongoDB?

What is a cursor in MongoDB?

Found the answer in the glossary (didn’t realize there was a MongoDB glossary)
Cursor: A pointer to the result set of a query. Clients can iterate through a cursor to retrieve results. By default, cursors timeout after 10 minutes of inactivity. See Iterate a Cursor in the mongo Shell.

1 Like