Skip to content

Question: how to detect relationships #845

@jorismak

Description

@jorismak

When data is requested , attributes and relationships are merged into one data object it seems. Which is nice.

But i need a list of relationships to know which subrequests to make.

For example , a field may contain an array of relationships. I don't know which those will be ahead of time. So after the first request , i have to make a separate call to fetch all relationships . But how can j reliably tell if a property was original a relationship or not ? Just assuming it was a relationship when an 'id' and 'type' property are present feels a bit dirty.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions