Support nested includes #10
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: thereadme/hapi-sequelize-crud#10
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have the following associations defined:
Calling
http://localhost:3030/api/seq/events?include=Assessment
orhttp://localhost:3030/api/seq/events?include=Organisation
produces the response, including the associated entity. Buthttp://localhost:3030/api/seq/events?include=[Assessment,Organisation]
includes none of the associated entities.The standard way to represent arrays in HTTP GET parameters is
include[]=Assessment&include[]=Organisation
, may you try that?Perfect! That works, thanks.
One more question. If I had nested associations, e.g.
Event
hasManyAssessments
hasManyQuestions
, how would the GET request parameters look?Great!
Um, nested associations are not supported at the moment. You can create a pull-request if you want.
Uhm, I had a look at the code, and don't think I'll be able to get this done ... Will leave it as a feature request for you, whenever you get the time.
Thanks for sorting out the other issues so quickly!
Alright, that's fine. Thank you for reporting and following up with the issues.