Check if it is okay to chain more options onto this cursor.
(self)
| 355 | return self._spec |
| 356 | |
| 357 | def _check_okay_to_chain(self) -> None: |
| 358 | """Check if it is okay to chain more options onto this cursor.""" |
| 359 | if self._retrieved or self._id is not None: |
| 360 | raise InvalidOperation("cannot set options after executing query") |
| 361 | |
| 362 | def add_option(self, mask: int) -> Cursor[_DocumentType]: |
| 363 | """Set arbitrary query flags using a bitmask. |
no test coverage detected