© 2026 Hedgehog Software, LLC
findMany()
export const getLatestRecords = db.query.Record.findMany({ with: { owner: true }, limit: sql.placeholder('limit'), orderBy: (records, { desc }) => [desc(records.createdAt)] });
ownerId
ownderId
distinctOn