FindFirstOptions
FindFirstOptions =
Omit<FindManyOptions,"limit"|"offset">
Defined in: packages/db/src/types.ts:210
Options for db.query(table).findFirst().
Same as FindManyOptions without limit/offset (returns the first match or undefined).
Example
Section titled “Example”db.query(posts).findFirst({ where: eq(posts.id, "abc-123"),});