idcreatedAtupdatedAt
createdAt or updatedAt for chronological pagination.
.offset() for pagination.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Database query design patterns for consistent, leak-free pagination
idcreatedAtupdatedAtcreatedAt or updatedAt for chronological pagination.
.where(lt(table.createdAt, new Date(lastCreatedAt)))
.orderBy(desc(table.createdAt))
.limit(20)
.offset() for pagination.