Generates a QuerySet that returns the first record.
(cls, using_db: BaseDBAsyncClient | None = None)
| 1487 | |
| 1488 | @classmethod |
| 1489 | def first(cls, using_db: BaseDBAsyncClient | None = None) -> QuerySetSingle[Self | None]: |
| 1490 | """ |
| 1491 | Generates a QuerySet that returns the first record. |
| 1492 | """ |
| 1493 | return cls._db_queryset(using_db).first() |
| 1494 | |
| 1495 | @classmethod |
| 1496 | def last(cls, using_db: BaseDBAsyncClient | None = None) -> QuerySetSingle[Self | None]: |