(Error: “Included sub relation ‘files’ is invalid”)
According to the docs I should be able to query nested relationships with “dot” notation … ?
Or does that happen because at least one of the queried vehicles has no image?
If that is so, how can I get image data along with vehicle data with a single query if it is possible that vehicles have no images?
works just fine, as I wrote …
The docs explicitly state: " You can pass an include query parameter to any endpoint(including POST/PATCH endpoints!) to include the relationships of the requested entities."
And unfortunately “InlineData”: true doesn’t resolve relations. An image contained in the vehicle data looks just like this:
The docs explicitly state: " You can pass an include query parameter to any endpoint(including POST/PATCH endpoints!) to include the relationships of the requested entities."
Oh sorry i must have missed it. You are totally right.
Ah yes, if you only want to display it and do not need the meta infos, the files id will directly resolve to the binary data when passed to the download endpoint.
The response headers there should also give you the file-name and file-type, if needed.