J.P. Poveda

Results issues of J.P. Poveda

``` @Route({ method: 'get', path: ':id' }) async getById(req, res, next) { if(req.params.id === 'suggestions') { return; } } @Route({ method: 'get', path: '/suggestions' }) async getById(req, res, next) {...

bug

``` @Db() @Json({ encrypt: 'array', type: 'id' }) locationIds: LocationId[] = []; ``` If true, assume the entire property should be encrypted, otherwise, encrypt individual elements within the array such...

enhancement

`- Error: Model 'Area' has a property 'imageSmallFileName' that defines its model with a value that cannot be constructed` See also: #160

bug

Part 2 of #177 `@FromJson` needs to be refactored and updated to behave like `@ToJson` so that sub document `@FromJson`s get called. See: https://github.com/sakuraapi/core/blob/develop/src/core/%40model/from-json.spec.ts#L153

bug
enhancement
module:@Model

https://github.com/sakuraapi/core/blob/develop/src/core/sakura-api.ts#L593 Currently, you have to do this manually by adding a middleware handler.

enhancement
module:SakuraApi

For example `find`, `aggregate`.. you should be able to just: `model.aggregate([...])` rather than having to `model.getCollection().aggregate([...])`

enhancement
module:@Model

For example if a model has a property `userId` that's decorated `@Db('uid')`, you have to `model.getOne(uid: 123)` rather than `model.getOne(userId: 123)`.

bug
verify
module:@Model

Things are a mess in test land... clean things up.

refactor