| 513 | |
| 514 | |
| 515 | class ExistsResult(Result): |
| 516 | |
| 517 | @property |
| 518 | def exists(self) -> bool: |
| 519 | """ |
| 520 | bool: True if the document exists, false otherwise. |
| 521 | """ |
| 522 | return self._orig.raw_result.get('document_exists', False) |
| 523 | |
| 524 | def __repr__(self): |
| 525 | return "ExistsResult:{}".format(self._orig) |
| 526 | |
| 527 | |
| 528 | class MultiExistsResult: |