{"action":"opened","issue":{"url":"https://api.github.com/repos/neomerx/json-api/issues/90","labels_url":"https://api.github.com/repos/neomerx/json-api/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/neomerx/json-api/issues/90/comments","events_url":"https://api.github.com/repos/neomerx/json-api/issues/90/events","html_url":"https://github.com/neomerx/json-api/issues/90","id":113132294,"number":90,"title":"Make it easier to declare \"simple\" relationships","user":{"login":"bobbysciacchitano","id":868979,"avatar_url":"https://avatars.githubusercontent.com/u/868979?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbysciacchitano","html_url":"https://github.com/bobbysciacchitano","followers_url":"https://api.github.com/users/bobbysciacchitano/followers","following_url":"https://api.github.com/users/bobbysciacchitano/following{/other_user}","gists_url":"https://api.github.com/users/bobbysciacchitano/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbysciacchitano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbysciacchitano/subscriptions","organizations_url":"https://api.github.com/users/bobbysciacchitano/orgs","repos_url":"https://api.github.com/users/bobbysciacchitano/repos","events_url":"https://api.github.com/users/bobbysciacchitano/events{/privacy}","received_events_url":"https://api.github.com/users/bobbysciacchitano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-24T03:15:56Z","updated_at":"2015-10-24T03:15:56Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using json-api with Lumen and was wondering if there was a way of being able to declare a relationship by its ID without having to load a coerce it into a model?\r\n\r\nFor example (pseudo)\r\n```php\r\n/**\r\n * @inheritdoc\r\n */\r\npublic function getRelationships($resource, array $includeRelationships = [])\r\n{\r\n    return [\r\n        'organisation' => [ self::SIMPLE => [ 'class' => Organisation::class, 'id' => $resource->organisation_id ] ],\r\n    ];\r\n}\r\n```"}}