Skip to main content
Version: 4.5

Interface: FindOneOrFailOptions<T, P>#

core.FindOneOrFailOptions

Type parameters#

NameTypeDefault
T--
PPopulate<T>Populate<T>

Hierarchy#

Properties#

cache#

Optional cache: number | boolean | [string, number]

Inherited from: FindOneOptions.cache

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:85


convertCustomTypes#

Optional convertCustomTypes: boolean

Inherited from: FindOneOptions.convertCustomTypes

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:89


disableIdentityMap#

Optional disableIdentityMap: boolean

Inherited from: FindOneOptions.disableIdentityMap

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:90


failHandler#

Optional failHandler: (entityName: string, where: any) => Error

Type declaration:#

▸ (entityName: string, where: any): Error

Parameters:#

NameType
entityNamestring
whereany

Returns: Error

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:106

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:106


fields#

Optional fields: (string | FieldsMap)[]

Inherited from: FindOneOptions.fields

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:91


filters#

Optional filters: boolean | string[] | Dictionary<boolean | Dictionary<any>>

Inherited from: FindOneOptions.filters

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:97


flags#

Optional flags: QueryFlag[]

Inherited from: FindOneOptions.flags

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:93


groupBy#

Optional groupBy: string | string[]

Inherited from: FindOneOptions.groupBy

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:94


having#

Optional having: FilterQuery<T> | FilterQuery<T> & Dictionary<any>

Inherited from: FindOneOptions.having

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:95


lockMode#

Optional lockMode: LockMode

Inherited from: FindOneOptions.lockMode

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:101


lockVersion#

Optional lockVersion: number | Date

Inherited from: FindOneOptions.lockVersion

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:102


orderBy#

Optional orderBy: QueryOrderMap

Inherited from: FindOneOptions.orderBy

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:84


populate#

Optional populate: P

Inherited from: FindOneOptions.populate

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:83


refresh#

Optional refresh: boolean

Inherited from: FindOneOptions.refresh

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:88


schema#

Optional schema: string

Inherited from: FindOneOptions.schema

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:92


strategy#

Optional strategy: LoadStrategy

Inherited from: FindOneOptions.strategy

Defined in: packages/core/src/drivers/IDatabaseDriver.ts:96

Last updated on by Renovate Bot