@typegoose/typegoose
Advanced tools
Changelog
6.1.3
@prop
Changelog
6.1.2
_id: false
(and apply it) for @mapProp
_id
if subDocumentChangelog
6.1.1
deleteModel
now deletes the model from the connection it is on typegoose#119Changelog
6.1.0
@staticMethod
& @instanceMethod
, because they were completely obsolete@prop({ validate })
now accepts { validator, message }
as an arraydeleteModel
& deleteModelWithClass
setGlobalOptions
runSyncIndexes
allowMixed
text
to PropOptionsitemsRef
, itemsRefPath
& itemsRefType
DocumentType
will now overwrite the type of _id
if the class is extending Base
(in TypeScript there is currently no other way)tslib
as dependency to minimize generated codesetModelForClass
setGlobalOptions({ globalOptions: { useNewEnum: true } })
(to not break existing databases made with the old handling)getModelWithString
initAsObject
and initAsArray
into initProperty
isNullOrUndefined
checksMixed
is doneIModelOptions
are merged (thanks to lodash cloneDeepWith
& mergeWith
)Buffer
& Decimal
now workprop.ts