postlight / lux

Build scalable, Node.js-powered REST JSON APIs with almost no code.
https://lux.postlight.com
MIT License
570 stars 60 forks source link

include nested relationship #748

Closed jonathanpruvost closed 3 years ago

jonathanpruvost commented 4 years ago

Hello,

Even if it no longer seems to be maintained, I try my luck.

I'm having a problem when trying to include a relation from a relation like in the ember-data usage example: include: 'comments,comments.author' https://guides.emberjs.com/release/models/relationships/#toc_retrieving-related-records

I receive a 400 error, Bad request, Is this possible with Lux?

Thank you for your help.

nickschot commented 4 years ago

Unfortunately Lux has no support for nested includes, even top level includes are not complete as they do not include relationships and, in the case of ember-data, will make ember-data believe the relationships are null.

jonathanpruvost commented 3 years ago

thank you for your reply