{"action":"created","issue":{"url":"https://api.github.com/repos/scottwrobinson/camo/issues/13","labels_url":"https://api.github.com/repos/scottwrobinson/camo/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/scottwrobinson/camo/issues/13/comments","events_url":"https://api.github.com/repos/scottwrobinson/camo/issues/13/events","html_url":"https://github.com/scottwrobinson/camo/issues/13","id":113239724,"number":13,"title":"deep populate","user":{"login":"MattMcFarland","id":623545,"avatar_url":"https://avatars.githubusercontent.com/u/623545?v=3","gravatar_id":"","url":"https://api.github.com/users/MattMcFarland","html_url":"https://github.com/MattMcFarland","followers_url":"https://api.github.com/users/MattMcFarland/followers","following_url":"https://api.github.com/users/MattMcFarland/following{/other_user}","gists_url":"https://api.github.com/users/MattMcFarland/gists{/gist_id}","starred_url":"https://api.github.com/users/MattMcFarland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattMcFarland/subscriptions","organizations_url":"https://api.github.com/users/MattMcFarland/orgs","repos_url":"https://api.github.com/users/MattMcFarland/repos","events_url":"https://api.github.com/users/MattMcFarland/events{/privacy}","received_events_url":"https://api.github.com/users/MattMcFarland/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scottwrobinson/camo/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-25T17:54:47Z","updated_at":"2015-10-27T01:07:21Z","closed_at":null,"body":"Hey,\r\n\r\nSpent the last 6 hours trying to figure out how to deep populate a comments model.  Nested models are not getting populated.  With mongoose we can use a plugin called deepPopulate or populateDeep, and it works.  But with Camo (I love camo btw) there really isnt a way to do it.  I tried really hard and nothing works.  Please let me know if you have any ideas.."},"comment":{"url":"https://api.github.com/repos/scottwrobinson/camo/issues/comments/151330590","html_url":"https://github.com/scottwrobinson/camo/issues/13#issuecomment-151330590","issue_url":"https://api.github.com/repos/scottwrobinson/camo/issues/13","id":151330590,"user":{"login":"scottwrobinson","id":2948719,"avatar_url":"https://avatars.githubusercontent.com/u/2948719?v=3","gravatar_id":"","url":"https://api.github.com/users/scottwrobinson","html_url":"https://github.com/scottwrobinson","followers_url":"https://api.github.com/users/scottwrobinson/followers","following_url":"https://api.github.com/users/scottwrobinson/following{/other_user}","gists_url":"https://api.github.com/users/scottwrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/scottwrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottwrobinson/subscriptions","organizations_url":"https://api.github.com/users/scottwrobinson/orgs","repos_url":"https://api.github.com/users/scottwrobinson/repos","events_url":"https://api.github.com/users/scottwrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/scottwrobinson/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T01:07:21Z","updated_at":"2015-10-27T01:07:21Z","body":"Hi Matt,\r\n\r\nThat's one of the fundamental problems with JavaScript being asynchronous, if a method makes an async call, then it has to return a promise, no way around it.\r\n\r\nIt would definitely be nice if Camo could handle deep population. I'm still working on a way to let you tell Camo which fields to populate (and how deep) and which to leave as references. Hopefully I'll have the feature out soon. I'll take a look at Mongoose's populateDeep plugin. Thanks for pointing that out!\r\n\r\nI should have more time to look at your code later this week. I'll get back to you then. Also, thanks for your feedback on Camo! It really helps to have another set of eyes and to see how people are using it.\r\n\r\nScott"}}