Typegoose - Define Mongoose models using TypeScript classes.
MIT License
Bot releases are hidden (Show)
Published by hasezoey over 3 years ago
get/set
option to use the schema instead of the class [typegoose#478]Published by hasezoey over 3 years ago
QueryMethod
to AsQueryMethod
to not conflict with the PascalCase export for decorator @queryMethod
[typegoose#465]Published by hasezoey almost 4 years ago
5.9.x
to 5.10.x
)5.10.18
Published by hasezoey almost 4 years ago
NDA
to NumberOrDocumentOrDocumentArray
to be more understandableArgument of type 'string[]' is not assignable to parameter of type '"insertMany"'.ts(2769)
[typegoose#422]Published by hasezoey almost 4 years ago
Published by hasezoey almost 4 years ago
5.10.0
to 5.10.18
, read here for more
Published by hasezoey almost 4 years ago
mongoose.Schema.Types.Mixed
if Type is still *Array
[typegoose#300]Published by hasezoey almost 4 years ago
Published by hasezoey about 4 years ago
mongoose
to 5.10.4lodash
to 4.17.20loglevel
to 1.7.0tslib
to 2.0.1@types/mongoose
to 5.7.36justOne
is defined, but no Virtual Populate OptionsDeferredFunc
DynamicStringFunc
localField
& foreignField
ref
(ref: () => (doc) => doc.someProp
)type: () => [String]
(and nested too))dim
is included as an option in the schema [typegoose#366]Includes since last pre-release:
Includes since last pre-release:
DeferredFunc
DynamicStringFunc
localField
& foreignField
ref
(ref: () => (doc) => doc.someProp
)Includes since last pre-release:
mongoose
to 5.10.4lodash
to 4.17.20loglevel
to 1.7.0tslib
to 2.0.1@types/mongoose
to 5.7.36Includes since last pre-release:
type: () => [String]
(and nested too))dim
is included as an option in the schema [typegoose#366]Published by hasezoey about 4 years ago
InvalidPropError
schemaOptions
in src/internal/schema.ts
to an black object [typegoose#357]Published by hasezoey about 4 years ago
Published by hasezoey about 4 years ago
process
is definedutil.format
with template strings [typegoose#348]util.deprecate
[typegoose#344]Published by hasezoey about 4 years ago
@prop
tsdoc to show it supports Maps and ArraysPublished by hasezoey about 4 years ago
typescript
to 3.9.7countDocuments
, estimatedDocumentCount
, deleteMany
, findOneAndDelete
, deleteOne
Published by hasezoey over 4 years ago
mongoose
to 5.9.22lodash
to 4.17.19@types/mongoose
to 5.7.30@types/lodash
to 4.14.157@types/semver
to 7.3.1typescript
to 3.9.6TimeStamps
's (Default Class) properties are not marked as Readonly
anymoreundefined
as the first parameter too (if an type was OR with undefined
, the function would give an type-error)discriminators
for embedded Discriminators [#248]ClassDecorator
& PropertyDecorator
)warnMixed
SchemaTypeOptions
, the options are now defaulted to the outer-layerinnerOptions
and outerOptions
can now be used for Maps toomessage
being an functionmongoose.Types.Buffer
to mongoose.Schema.Types.Buffer
Base
with other than ObjectId
[#316]mapOptions
now always errors if the given type dosnt extend mongoose.SchemaTypeOptions
_buildPropMetadata
to its own file (processProp
) and renamed it to processProp
[#286]prop
into processProp
[#286]NoMetadataError
Type
needs to be defined in prop
/ processProp