{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1146","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1146/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1146/events","html_url":"https://github.com/strongloop/loopback/issues/1146","id":59421572,"number":1146,"title":"EmbedsMany with selected properties","user":{"login":"brunocascio","id":2397875,"avatar_url":"https://avatars.githubusercontent.com/u/2397875?v=3","gravatar_id":"","url":"https://api.github.com/users/brunocascio","html_url":"https://github.com/brunocascio","followers_url":"https://api.github.com/users/brunocascio/followers","following_url":"https://api.github.com/users/brunocascio/following{/other_user}","gists_url":"https://api.github.com/users/brunocascio/gists{/gist_id}","starred_url":"https://api.github.com/users/brunocascio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunocascio/subscriptions","organizations_url":"https://api.github.com/users/brunocascio/orgs","repos_url":"https://api.github.com/users/brunocascio/repos","events_url":"https://api.github.com/users/brunocascio/events{/privacy}","received_events_url":"https://api.github.com/users/brunocascio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/waiting","name":"waiting","color":"dddddd"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-01T22:40:33Z","updated_at":"2015-12-23T14:10:45Z","closed_at":"2015-12-23T14:10:44Z","body":"Is this possible?\r\n\r\nFor example:\r\n\r\n```\r\n\"likes\": {\r\n      \"type\": \"embedsMany\",\r\n      \"model\": \"User\",\r\n      \"properties\":{\r\n        \"userId\": \"id\"\r\n      }\r\n    }\r\n```\r\n\r\nwhere only get `id` from `User` :\r\n\r\nExpected result:\r\n\r\n```\r\nlikes: [\r\n {\"userId\": \"s76fa7688s7fa8df7a89s\"}\r\n]\r\n```\r\n\r\nOr much better:\r\n\r\n```\r\nlikes: [ \"s76fa7688s7fa8df7a89s\",  \"7ds8687s96ga879s87fas87sa7\"]\r\n```\r\n\r\nwhich is the correct form?"}}