IWrappedEntity <Entity>
Index
Methods
assign
Type parameters
- Naked: unknown = FromEntityType<Entity>
- Convert: boolean = false
- Data: EntityData<Naked, Convert> | Partial<EntityDTO<Naked, never>> = EntityData<Naked, Convert> | Partial<EntityDTO<Naked, never>>
Parameters
data: Data & IsSubset<EntityData<Naked, Convert>, Data>
optionaloptions: AssignOptions<Convert>
Returns MergeSelected<Entity, Naked, keyof Data & string>
getSchema
Returns undefined | string
init
Type parameters
- Hint: string = never
- Fields: string = *
- Excludes: string = never
Parameters
optionaloptions: FindOneOptions<Entity, Hint, Fields, Excludes>
Returns Promise<null | Loaded<Entity, Hint, Fields, Excludes>>
isInitialized
Returns boolean
isManaged
Returns boolean
isTouched
Returns boolean
populate
Type parameters
- Hint: string = never
Parameters
populate: false | AutoPath<Entity, Hint, never, 9>[]
optionaloptions: EntityLoaderOptions<Entity>
Returns Promise<Loaded<Entity, Hint, *, never>>
populated
Parameters
optionalpopulated: boolean
Returns void
serialize
Type parameters
- Hint: string = never
- Exclude: string = never
Parameters
optionaloptions: SerializeOptions<Entity, Hint, Exclude>
Returns EntityDTO<Loaded<Entity, Hint, *, never>, never>
setSchema
Parameters
optionalschema: string
Returns void
toJSON
Parameters
rest...args: any[]
Returns EntityDTO<Entity, never>
toObject
Returns EntityDTO<Entity, never>
toPOJO
Returns EntityDTO<Entity, never>
toReference
Returns Ref<Entity> & LoadedReference<Loaded<Entity, AddEager<Entity>, *, never>>