Search
Preparing search index...
The search index is not available
mongoose-typescript
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"schema"
Module "schema"
Index
Type aliases
Lazy
Class
Schema
Type
Functions
array
defaults
enums
hidden
id
indexed
methods
mongo
Id
prop
query
ref
ref
Array
required
statics
type
unique
virtual
Type aliases
Lazy
Class
Lazy
Class
:
(
)
=>
Constructor
Type declaration
(
)
:
Constructor
Returns
Constructor
Schema
Type
Schema
Type<T>
:
Omit
<
SchemaTypeOpts
<
T
>
,
"type"
>
&
{
type
?:
T
}
Type parameters
T
Functions
array
array<T>
(
type
?:
T
, options
?:
SchemaTypeOpts
<
T
[]
>
)
:
(Anonymous function)
Type parameters
T
:
unknown
Parameters
Optional
type:
T
Optional
options:
SchemaTypeOpts
<
T
[]
>
Returns
(Anonymous function)
defaults
defaults<T>
(
value
:
T
)
:
PropertyDecorator
Type parameters
T
Parameters
value:
T
Returns
PropertyDecorator
enums
enums
(
values
:
Array
<
string
|
number
>
|
Record
<
string
|
number
,
string
|
number
>
)
:
PropertyDecorator
Parameters
values:
Array
<
string
|
number
>
|
Record
<
string
|
number
,
string
|
number
>
Returns
PropertyDecorator
hidden
hidden
(
)
:
PropertyDecorator
Returns
PropertyDecorator
id
id
(
)
:
PropertyDecorator
Returns
PropertyDecorator
indexed
indexed
(
)
:
PropertyDecorator
Returns
PropertyDecorator
methods
methods
(
)
:
PropertyDecorator
Returns
PropertyDecorator
mongo
Id
mongo
Id<T>
(
options
?:
SchemaTypeOpts
<
T
>
&
{
type
?:
T
}
, type
?:
T
)
:
PropertyDecorator
Type parameters
T
Parameters
Default value
options:
SchemaTypeOpts
<
T
>
&
{
type
?:
T
}
= {}
Optional
type:
T
Returns
PropertyDecorator
prop
prop<T>
(
options
?:
SchemaType
<
T
>
, type
?:
SchemaDefinition
[
"type"
]
)
:
PropertyDecorator
Type parameters
T
Parameters
Default value
options:
SchemaType
<
T
>
= {}
Optional
type:
SchemaDefinition
[
"type"
]
Returns
PropertyDecorator
query
query
(
)
:
PropertyDecorator
Returns
PropertyDecorator
ref
ref
(
nameOrClass
:
string
|
LazyClass
, idType
:
unknown
)
:
any
ref
(
nameOrClass
:
IMongooseClass
, idType
?:
unknown
)
:
any
Parameters
nameOrClass:
string
|
LazyClass
idType:
unknown
Returns
any
Parameters
nameOrClass:
IMongooseClass
Optional
idType:
unknown
Returns
any
ref
Array
ref
Array
(
nameOrClass
:
string
|
LazyClass
|
IMongooseClass
, elementType
:
unknown
)
:
PropertyDecorator
Parameters
nameOrClass:
string
|
LazyClass
|
IMongooseClass
elementType:
unknown
Returns
PropertyDecorator
required
required
(
)
:
PropertyDecorator
Returns
PropertyDecorator
statics
statics
(
)
:
PropertyDecorator
Returns
PropertyDecorator
type
type
(
type
:
Prototype
)
:
PropertyDecorator
Parameters
type:
Prototype
Returns
PropertyDecorator
unique
unique
(
)
:
PropertyDecorator
Returns
PropertyDecorator
virtual
virtual
(
)
:
MethodDecorator
Returns
MethodDecorator
Globals
"index"
"meta"
"middleware"
"model"
"schema"
"util"
Lazy
Class
Schema
Type
array
defaults
enums
hidden
id
indexed
methods
mongo
Id
prop
query
ref
ref
Array
required
statics
type
unique
virtual
Generated using
TypeDoc