- Preparing search index...
- The search index is not available
biorate
Class VirtualType<HydratedDocType>
Methods
applyGetters
- applyGetters(value, doc): any
-
Returns any
applySetters
- applySetters(value, doc): any
-
Returns any
get
- get<T>(fn): VirtualType<HydratedDocType>
-
Parameters
-
fn: ((this, value, virtualType, doc) => any)
-
- (this, value, virtualType, doc): any
-
Parameters
-
this: T
-
value: any
-
-
doc: T
Returns any
Returns VirtualType<HydratedDocType>
set
- set<T>(fn): VirtualType<HydratedDocType>
-
Parameters
-
fn: ((this, value, virtualType, doc) => void)
-
- (this, value, virtualType, doc): void
-
Parameters
-
this: T
-
value: any
-
-
doc: T
Returns void
Returns VirtualType<HydratedDocType>
Applies getters to
value
.