6c46ff68d0
fix(primaryKey): use model.primaryKey
instead of hardcoded id
for id
routes, fixes #9
2016-07-13 11:27:48 +04:30
6786b9b487
style: updated eslint config
2016-07-09 09:41:23 +04:30
07af23cb5a
chore(eslint): use eslint for a more consistent style throughout the code
2016-06-30 18:28:02 +04:30
2fd7fa09b0
Replace defaults by defaultsDeep
2016-06-05 17:51:54 +01:00
9a28dbcc02
Added defaultConfig parameter to the options
2016-06-05 14:44:24 +01:00
973f63640c
fix(destroy): associative remove
methods require the instance, they don't accept queries, so fallback to manual destroy
2016-04-19 11:39:59 +04:30
544dc23723
fix(associate): associating one way is enough
...
fix(destroy): directly get a `destroy` method instead of find and destroy
2016-03-31 20:40:01 +04:30
097a9adcf3
fix(one-to-many): raw parameters are removed
2016-03-12 09:58:05 +03:30
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
5db3bb4eb3
feat(operators): ability to use sequelize operators in queries
2016-02-01 16:46:30 +03:30
6cfe877884
feat(include): include query parameter, passed to sequelize query
...
fix(associations): one-to-many associations -> destroyScope and get
2016-01-29 11:30:39 +03:30
14a36434f7
fix(associations): request.query should apply to second model's where
...
feat(associations): scope queries on associations
2016-01-19 10:37:56 +03:30
52ad030d0d
feat(associations): many-to-many associations
...
fix(associations): fix association queries, must use `include` instead of ForeignKey
fix(error): error decorator was missing await, which prevented it from catching errors
fix(error): console.error the error
refactor(crud): don't use `request.models[name]`, use the model directly
chore: README added
2016-01-19 10:03:29 +03:30
bae6820e64
feat(simple): simple CRUD REST API (no associations)
...
feat(associations): one-to-one associations
feat(associations): one-to-many associations
2016-01-18 18:08:43 +03:30