dchester / epilogue

Create flexible REST endpoints and controllers from Sequelize models in your Express app
846 stars 116 forks source link

Is it possible to use scope on `read` end point #211

Closed cubbuk closed 7 years ago

cubbuk commented 7 years ago

I can use scopes on list end points, so for example the following get request to api/users?scope=activeUsers use activeUsers scope on User model. Where as when I try to make a request to read end point as following api/users/1?scope=activeUsers, scope is not applied to model.

Is this an intended behavior or am I missing something or doing something wrong here? Thanks

cubbuk commented 7 years ago

Nvm apparently version 0.7.1 has this feature, after upgrading it has worked.