-
Notifications
You must be signed in to change notification settings - Fork 116
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
Content-Range when there is association, counts the inner object as well. #198
Comments
@zivchen
At least it works for me |
Distinct could be set as default and mentioned in the docs. |
This workaround isn't working for me, here's what I did:
Request is i.e. I'm getting a response |
@kvanberendonck it didn't work for me either, I think it's also a bug in sequelize, at least with mysql, I ended up doing two queries and merging the associations. |
I made it work ! I'll share solution when I get off lunch |
Using |
Hi
I have 2 object, Test and Step.
Test has many Steps.
I have 4 Tests and 200 steps.
model definition:
endpoints.testResource = epilogue.resource({
model: models.Test,
endpoints: ['/admin/api/tests', '/admin/api/tests/:id'],
associations: true
});
when doing get-> /tests i get content range 0-4/ 204.
so my admin shows pagination when there are none.
if i remove the association its great.
thanks.
Ziv
The text was updated successfully, but these errors were encountered: