Comparing version 0.2.0 to 0.2.1
@@ -9,3 +9,2 @@ ## [Unreleased] | ||
* Add cursor options ([MongoDB Doc](https://docs.mongodb.com/manual/reference/method/js-cursor/)). | ||
* .project({a:1}) // Create a projection of field a | ||
* .skip(1) // Skip 1 | ||
@@ -36,2 +35,12 @@ * .limit(10) // Limit 10 | ||
## [0.2.1] - 2017-12-20 | ||
### Added | ||
* Options 'projection' to just exclude or include specific field in the documents results | ||
### Changed | ||
* Documentation about find() method | ||
## [0.2.0] - 2017-12-18 | ||
@@ -183,2 +192,3 @@ | ||
[0.2.1]: https://github.com/Yonirt/moltyjs/compare/v0.2.0...v0.2.1 | ||
[0.2.0]: https://github.com/Yonirt/moltyjs/compare/v0.1.6...v0.2.0 | ||
@@ -185,0 +195,0 @@ [0.1.6]: https://github.com/Yonirt/moltyjs/compare/v0.1.5...v0.1.6 |
@@ -34,3 +34,4 @@ 'use strict'; | ||
moltyClass: true, | ||
limit: 0 | ||
limit: 0, | ||
projection: null | ||
}; | ||
@@ -400,3 +401,3 @@ | ||
var _ref5 = yield to(cursor.limit(findOptions.limit).toArray()), | ||
var _ref5 = yield to(cursor.limit(findOptions.limit).project(findOptions.projection).toArray()), | ||
_ref6 = _slicedToArray(_ref5, 2); | ||
@@ -403,0 +404,0 @@ |
{ | ||
"name": "moltyjs", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A tiny ODM for MongoDB with multy tenancy support.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -273,2 +273,3 @@ # What is moltyjs? | ||
* {Number} `limit` (0 by default: no limit) Limit the results to the amount specified | ||
* {Object} `projection` (null by default) Create a projection of a field, the projection document limits the fields to return for all matching documents | ||
@@ -275,0 +276,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64713
1224
305