import { FindOptionsWhere } from './FindOptionsWhere' import { FindOptionsSelect } from './FindOptionsSelect' import { FindOptionsRelations } from './FindOptionsRelations' import { FindOptionsOrder } from './FindOptionsOrder' /** * Defines a special criteria to find specific entity. */ export interface FindOneOptions { /** * Specifies what columns should be retrieved. */ fields?: FindOptionsSelect /** * Simple condition that should be applied to match entities. */ where?: FindOptionsWhere[] | FindOptionsWhere /** * Indicates what relations of entity should be loaded (simplified left join form). */ relations?: FindOptionsRelations /** * Order, in which entities should be ordered. */ order?: FindOptionsOrder /** * Any extra params to append to the end of the qs */ extraParams?: string[] }