Skip to content

Releases: sugoiJS/mongoDB

package.json updated

05 Nov 23:02

Choose a tag to compare

Merge branch 'master' of https://github.com/sugoiJS/mongoDB

# Conflicts:
#	__tests__/model.test.d.ts
#	__tests__/model.test.js
#	__tests__/models/dummy.js
#	classes/mongo-model.abstract.d.ts
#	classes/mongo-model.abstract.js
#	coverage/clover.xml
#	coverage/coverage-final.json
#	coverage/lcov-report/dist/__tests__/models/dummy.js.html
#	coverage/lcov-report/dist/__tests__/models/index.html
#	coverage/lcov-report/dist/classes/index.html
#	coverage/lcov-report/dist/classes/mongo-connection.class.js.html
#	coverage/lcov-report/dist/classes/mongo-model.abstract.js.html
#	coverage/lcov-report/dist/constants/exceptions.constant.js.html
#	coverage/lcov-report/dist/constants/index.html
#	coverage/lcov-report/dist/constants/sort-options-mongo.constant.js.html
#	coverage/lcov-report/dist/index.html
#	coverage/lcov-report/dist/index.js.html
#	coverage/lcov-report/index.html
#	coverage/lcov.info
#	docs/main.json
#	package-lock.json
#	package.json

New features

26 Oct 12:38

Choose a tag to compare

New features:

  • updateAll(query,data,options) - Update all the records which are meets the query.
  • skipRequiredFieldsValidation - skip the validation of @required fields

Support @Required and bug fixes

12 Oct 14:19

Choose a tag to compare

New features

  • property now allow to decorate with @required which indicate this property is mandatory.

Bug fixes

  • 'modelMeta' property wasn't hide during storing and sending the object

Support @Ignore and performance optimization

09 Oct 22:03

Choose a tag to compare

Bug fix

23 Sep 09:09

Choose a tag to compare

Bug fix

  • Advanced search wasn't work for "_id", for example
    model.findById({$nin:[model.getIdObject(uuid1),model.getIdObject(uuid2)]})
    Or
    model.find({_id:{$nin:[model.getIdObject(uuid1),model.getIdObject(uuid2)]}})
    return empty result set.

2.3.0

12 Sep 16:47

Choose a tag to compare

New feature

  • Integrate limit, offset (skip) and sort using QueryOptions.

  • support @ConnectionName(name:string) for changing connections

Bug fixes

  • sort, limit and skip wasn't implemented to mongo model.

2.2.0

05 Sep 18:55

Choose a tag to compare

Full integration with @SugoiJS/ORM Module

More information on @sugoiJS/ORM