nicklandgrebe/active-resource.js

Include multiple relationships?

Closed this issue · 1 comments

Is there any way to include multiple relationships? E.g.,:

The following works for a single association:

const homes = Homes.includes('rooms').all();

But this doesn't appear to work.

const homes = Homes.includes('rooms,residents').all();

Looking at the request header, it appears that this produces an incorrect request URL along with a 400 Bad Request response message:

http://localhost:4000/api/homes/?include=rooms%2Cresidents.

I'm sorry, I'm an idiot. Backend was misconfigured.