Repository.single() method
The first row matching the filter, or null.
Signature:
single<Row = Entity>(args: {
where?: Where | undefined;
select?: Select | undefined;
orderBy?: OrderBy | undefined;
}): Promise<Row | null>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
args |
{ where?: Where | undefined; select?: Select | undefined; orderBy?: OrderBy | undefined; } |
Returns:
Promise<Row | null>
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.