Joey Baker
8966d7b287
Feat add support of limit, offset, order
...
Allows passing these as query params to list and scope methods.
2016-10-21 11:07:27 -07:00
Joey Baker
f2f613b35b
Fix: boom error on invalid include
...
Sends a 501 `notImplemented` error when `parseInclude` can't find models
to include.
2016-09-05 17:08:09 -07:00
Mahdi Dibaiee
6786b9b487
style: updated eslint config
2016-07-09 09:41:23 +04:30
Joey Baker
2ea6c2e3a8
Fix: include option api correction
...
AFAIK, hapi-sequelize doesn't have a `request.models`, but it does have
a `request.getDb()` method that has `models` on it. This calls that
method to get the related models, but allows `request.models` to keep
working for backward compatibility.
2016-07-08 15:28:33 -07:00
Mahdi Dibaiee
07af23cb5a
chore(eslint): use eslint for a more consistent style throughout the code
2016-06-30 18:28:02 +04:30
Mahdi Dibaiee
11291f0e08
refactor: minimize repeated code by re-using parseInclude
, parseWhere
and getMethod
...
feat(include): ability to specify multiple includes, as an array
2016-03-10 10:48:30 +03:30