import { type FindOneOptions } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/find-options/FindOneOptions.ts";
Defines a special criteria to find specific entity.
Properties
optional
select: (keyof Entity)[]Specifies what columns should be retrieved.
Simple condition that should be applied to match entities.
Indicates what relations of entity should be loaded (simplified left join form).
optional
order: [P in keyof Entity]?: | "ASC"
| "DESC"
| 1
| -1
Order, in which entities should be ordered.
Enables or disables query result caching.
optional
lock: { mode: "optimistic"; version: number | Date; } | { mode: "pessimistic_read" | "pessimistic_write" | "dirty_read"; }Enables or disables query result caching.
If sets to true then loads all relation ids of the entity and maps them into relation values (not relation objects). If array of strings is given then loads only relation ids of the given properties.