WithId | mongodb (original) (raw)

Type Alias WithId

WithId<TSchema>: EnhancedOmit<TSchema, "_id"> & {
_id: InferIdType<TSchema>;
}

Add an _id field to an object shaped type

Type Parameters