Couldnt find this in the doc. Wondering if there is a way to exclude the data node from relationships. Especially helpful for has_many associations with a ton of data, which makes the payload even larger.
Instead, have the option to include links.related
Would be nice if there was something like has_many :comments, exclude: [:data], include: [:'links.related']
By links.related in relationships. I mean something like:
"attributes": {
...
},
"relationships": {
"comments": {
"links": {
"related": "http://localhost/api/v1/users/1/comments"
}
},
Couldnt find this in the doc. Wondering if there is a way to exclude the
datanode from relationships. Especially helpful forhas_manyassociations with a ton ofdata, which makes the payload even larger.Instead, have the option to include
links.relatedWould be nice if there was something like
has_many :comments, exclude: [:data], include: [:'links.related']By
links.relatedinrelationships. I mean something like: