@typegoose/typegoose
Advanced tools
Changelog
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