Releases: brickyang/egg-mongo-native
Releases · brickyang/egg-mongo-native
2018-12-15, Version 3.3.0
2018-05-10, Version 3.2.0
Notable changes
- lib/mongo.js: fix options error when make mongo url
2018-04-07, Version 3.1.0
Notable changes
- index.d.ts: add interface EggAggConfig & fix some typo
2018-01-23, Version 3.0.0-rc
Dependencies Update
- mongodb: 3.0.1
- @types/mongodb: 3.0.3
BREAKING CHANGES
- insertOne: return
insertedId
of typeObjectID
instead ofstring
- insertMany: return
insertedIds
of typeArray<ObjectID>
instead ofArray<string>
- find: use parameter
args.prediction
instead ofargs.predict
- find: can return cursor now (with parameter
returnCursor
, default tofalse
) - aggregate: parameter
pipeline
is now a property ofargs
to keep the same pattern with other functions
2018-01-23, Version 2.3.0
Notable changes
- aggregate: support
args.pipeline
parameter (recommend), parameterpipeline
is deprecated and will not be supported in version 3.x
2018-01-21, Version 2.2.0
Notable changes
- add
.aggregate(name, pipeline)
- add
index.d.ts
2017-12-11, Version 2.1.0
Notable changes
- support replica set uri
2017-12-10, Version 2.0.0
Notable changes
- support Egg 2