-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relationships not present in included resources #640
Comments
I believe this is actually an error in the ember-data implementation, not Lux. See this section of the JSON API spec. I'm going to close this issue for now. |
-- oops, thought it was another issue. EDIT: improvements to the first post to better clarify what this specific feature request is. |
Can be enabled by toggling this boolean: lux/src/packages/serializer/index.js Line 728 in 7bf2478
|
@nickschot I believe the lines have shifted since your link. Did you mean |
They seem to have! And I do! Thanks for pointing that out. I modified the comment with a more resilient link. |
How / where are you setting this value to |
I am not currently. It can be set to true in the lux codebase as pointed out in the comment as an initial fix for this issue, some tests would need to be added though. |
When requesting to include records for relationships of the requested record (i.e.
my-model?include=something1,something2
, the relationships of those records are not included in the response.I think this throws off at least ember-data a bit as it won't recognise any relationships for those records.
EDIT: some more information for this added below.
Example request:
GET /my-model/1?include=something
Example response from Lux (with the missing relationships for the records in "included"):
The text was updated successfully, but these errors were encountered: