- Preparing search index...
- The search index is not available
mongodb
Type alias InferIdType<TSchema>
InferIdType<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给定一个对象形状的类型,返回_id
字段的类型或默认为ObjectId