Preparing search index...
The search index is not available
mongodb
mongodb
InferIdType
Type Alias InferIdType<TSchema>
Infer
Id
Type
<
TSchema
>
:
TSchema
extends
{
_id
:
infer
IdType
;
}
?
Record
<
any
,
never
>
extends
IdType
?
never
:
IdType
:
TSchema
extends
{
_id
?:
infer
IdType
;
}
?
unknown
extends
IdType
?
ObjectId
:
IdType
:
ObjectId
Given an object shaped type, return the type of the _id field or default to ObjectId
Type Parameters
TSchema
Settings
Member Visibility
Protected
Inherited
External
Alpha
Beta
Theme
OS
Light
Dark
mongodb
Loading...
Given an object shaped type, return the type of the _id field or default to ObjectId