Closed nozpheratu closed 6 years ago
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.
http://localhost:4000/api/homes/?include=rooms%2Cresidents
I'm sorry, I'm an idiot. Backend was misconfigured.
Is there any way to include multiple relationships? E.g.,:
The following works for a single association:
But this doesn't appear to work.
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
.