Listing an association's foreign key in `excludeAttributes` breaks `include`
Closed this issue · 1 comments
sbonami commented
When considering the models:
User (id, name STRING, favoriteSport INT, ...)
Sport (id, name STRING, ...)
If a User resource uses include: [favoriteSport]
, the resulting output:
{
id: 1,
name: 'Student McStudent',
favoriteSportId: 1,
favoriteSport: {
id: 5,
name: 'Baseball',
...
},
...
But by listing favoriteSportId
in the excludeAttributes
, it also breaks the include
.
sbonami commented
Looks like I had competing settings unrelated to excludeAttributes
, my bad!