I'm coming from ActiveModelSerializer and trying to grasp the JSON API spec with the fast_jsonapi gem. One thing I've been wrestling with for a little while now is how to handle associations, or relationships in this particular case. I understand that with relationships, fast_jsonapi returns a hash only consisting of the id
and type
of a child. With that in mind, how do I get the data I need without creating a compound document?
Someone had recommended using links in the relationship object to reduce the # of queries but this confuses me as well. The way I'm seeing this is that I'm potentially making multiple api calls for one object (at the very least). Can someone break this down for me?