Search code examples
ember.jsember-cliember-cli-mirage

Include Property In Object Relationship in Ember


How can I return all the fields regarding to a relation in Ember ? I'm using JSONAPI but only ID and type are on the relation.

enter image description here


Solution

  • Generally you get this setup if the values you are after are in the included key further down in the payload. If you aren’t seeing that, sending a ?include=judge as part of your GET request should get you the value in the overall response from the server ...