Commit Graph

18 Commits

Author SHA1 Message Date
Jendrik
d39db26c26 add 'throw' to the strict option for schemas 2018-02-12 15:14:46 +01:00
Art
ccdc539cc4 Add: Mongoose 5 types (#23070)
* move v4 types

* add newline-per-chained-call tslint rule to avoi having to refactor the entire test file

* mongoose 5 types

* update SchemaToObjectOptions

* reuse toObject definition, add it to schema options, remove retainKeyOrder

* add paths to mongoose-deep-populate

* rm a no longer supported createConnection signature

* Object -> any @ mongoose 4

* object ->any @ mongoose 5

* rm todo comment

* rm Mongoose thenable type

* Add changes between 4.7 and 5.0

* Add path to mongoose/v4 to all dependent projects

* fix dropDatabase() brainfart.

* Add more missing methods

* rm newline-chained-call rule from tslint

* Revert "Add path to mongoose/v4 to all dependent projects"

This reverts commit 162b8ad
2018-01-26 13:32:00 -08:00
Paul van Brenk
2bb699e64b Merge pull request #22250 from simonxca/pre-mongoose
Mongoose: Use v3 function signature for schema pre method
2017-12-27 15:53:29 -08:00
simonxca
a9479a5c50 Use v3 function signature for pre method
Fixes #21938
The new signatures were confusing and caused some backwards breaking changes.
2017-12-16 19:08:26 -08:00
simonxca
bf99493e11 Allow overriding id attribute 2017-11-29 22:13:11 -08:00
simonxca
7c0a078ce9 Remove type parameter and use object type 2017-11-22 19:41:51 -08:00
simonxca
13d444d6d1 Add generic type for lean method
Fixes #20874
2017-11-16 11:22:14 -08:00
simonxca
2a5a4ff2fd Add tests for mongoose child schema
Fixes #20331
2017-11-13 21:06:55 -08:00
Joge
18ad4aba5a fix(Tests): fix implicit any error 2017-11-07 15:04:43 +01:00
Andy Hanson
c601b75e4b mongoose: Fix compile errors 2017-08-17 14:37:49 -07:00
E020873
62c91567aa [mongoose] set strictNullChecks to true 2017-06-07 14:04:49 +02:00
Simon Xiong
c85fe6ae3f Add new collation methods for mongoose (#16897)
* Add collation methods for query and aggregation

* Add tests for collation
2017-06-01 10:22:14 -07:00
Ryan Cavanaugh
082f61c87f Merge pull request #15719 from fabiob/mongoose-save-options
@types/mongoose: added save options
2017-04-17 18:08:44 -07:00
Fábio Batista
f44a1808a5 @types/mongoose: testing type inference on callbacks 2017-04-07 22:57:08 -03:00
Fábio Batista
c6ff176b82 @types/mongoose: following @simonxca advice and adding more tests 2017-04-07 21:29:22 -03:00
Fábio Batista
16be2fcb11 @types/{bson,mongodb,mongoose}: added Decimal128 type 2017-04-07 21:18:51 -03:00
Fábio Batista
0903e768fe @types/mongoose: added save options 2017-04-07 19:51:54 -03:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00