{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/3735","labels_url":"https://api.github.com/repos/emberjs/data/issues/3735/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/3735/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/3735/events","html_url":"https://github.com/emberjs/data/issues/3735","id":105488791,"number":3735,"title":"DS.JSONAPIAdapter lazy fetching of links","user":{"login":"jackmatt2","id":6348088,"avatar_url":"https://avatars.githubusercontent.com/u/6348088?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmatt2","html_url":"https://github.com/jackmatt2","followers_url":"https://api.github.com/users/jackmatt2/followers","following_url":"https://api.github.com/users/jackmatt2/following{/other_user}","gists_url":"https://api.github.com/users/jackmatt2/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmatt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmatt2/subscriptions","organizations_url":"https://api.github.com/users/jackmatt2/orgs","repos_url":"https://api.github.com/users/jackmatt2/repos","events_url":"https://api.github.com/users/jackmatt2/events{/privacy}","received_events_url":"https://api.github.com/users/jackmatt2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T23:32:47Z","updated_at":"2015-09-09T06:37:01Z","closed_at":"2015-09-09T06:32:36Z","body":"In `DS.RestAdapter` I am able to lazily fetch links as described [here](https://github.com/emberjs/data/pull/1371)\r\n\r\nI need the equivalent with the `DS.JSONAPIAdapter`.  Basically I don't want to serialize the data attribute in the JSON response.\r\n\r\n```json\r\n{\r\n  \"links\": {\r\n    \"self\": \"/states/1/relationships/addresses\",\r\n    \"related\": \"/states/1/addresses\"\r\n  },\r\n  \"data\": [           <---- want the data values to be loaded lazily\r\n    { \"type\": \"states\", \"id\": \"2\" },\r\n    { \"type\": \"states\", \"id\": \"3\" }\r\n    ...\r\n  ]\r\n}\r\n```\r\n\r\nThe relationship could potentially contain a huge amount of data attributes and only want to fetch them when needed.  There is also an issue I am having on the backend that makes it preferable to prevent fetching the addresses collection until explicitly needed.\r\n\r\n```json\r\n{\r\n  \"links\": {\r\n    \"self\": \"/states/1/relationships/addresses\",\r\n    \"related\": \"/states/1/addresses\"\r\n  }\r\n}\r\n```\r\n\r\nDoes `DS.JSONAPIAdapter` support anything like this?\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/data/issues/comments/138804808","html_url":"https://github.com/emberjs/data/issues/3735#issuecomment-138804808","issue_url":"https://api.github.com/repos/emberjs/data/issues/3735","id":138804808,"user":{"login":"jackmatt2","id":6348088,"avatar_url":"https://avatars.githubusercontent.com/u/6348088?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmatt2","html_url":"https://github.com/jackmatt2","followers_url":"https://api.github.com/users/jackmatt2/followers","following_url":"https://api.github.com/users/jackmatt2/following{/other_user}","gists_url":"https://api.github.com/users/jackmatt2/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmatt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmatt2/subscriptions","organizations_url":"https://api.github.com/users/jackmatt2/orgs","repos_url":"https://api.github.com/users/jackmatt2/repos","events_url":"https://api.github.com/users/jackmatt2/events{/privacy}","received_events_url":"https://api.github.com/users/jackmatt2/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T06:37:01Z","updated_at":"2015-09-09T06:37:01Z","body":"@wecc One more thing, how would this work for a collection?\r\n"}}