import { type FindOneOptions } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";
Defines a special criteria to find specific entity.
Properties
optional
order: [P in keyof Entity]?: | "ASC"
| "DESC"
| 1
| -1
Order, in which entities should be ordered.
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.
Indicates if eager relations should be loaded or not. By default they are loaded when find methods are used.
optional
order: [P in keyof Entity]?: | "ASC"
| "DESC"
| 1
| -1
Order, in which entities should be ordered.
optional
lock: { mode: "optimistic"; version: number | Date; } | { mode: "pessimistic_read" | "pessimistic_write" | "dirty_read"; }Enables or disables query result caching.