jsonapi-client icon indicating copy to clipboard operation
jsonapi-client copied to clipboard

Related resources are not fetched via their own link

Open anuragagarwal561994 opened this issue 7 years ago • 0 comments

There can be a possibility that related resources might have different links, like if A has a relation B.

A {
    "data": {
        ...
        "relationships": {
            "B": {"data": {...}, "links": {"self": "prefix/B"}}
         }
    }
}

B should thus be fetched by its link and not like the regular fetch_by_id.

anuragagarwal561994 avatar Sep 11 '17 13:09 anuragagarwal561994