{"action":"created","issue":{"url":"https://api.github.com/repos/buunguyen/mongoose-deep-populate/issues/8","labels_url":"https://api.github.com/repos/buunguyen/mongoose-deep-populate/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/buunguyen/mongoose-deep-populate/issues/8/comments","events_url":"https://api.github.com/repos/buunguyen/mongoose-deep-populate/issues/8/events","html_url":"https://github.com/buunguyen/mongoose-deep-populate/issues/8","id":60285909,"number":8,"title":"deepPopulate with lean() only makes the top level object a normal js object","user":{"login":"jpatel71","id":308961,"avatar_url":"https://avatars.githubusercontent.com/u/308961?v=3","gravatar_id":"","url":"https://api.github.com/users/jpatel71","html_url":"https://github.com/jpatel71","followers_url":"https://api.github.com/users/jpatel71/followers","following_url":"https://api.github.com/users/jpatel71/following{/other_user}","gists_url":"https://api.github.com/users/jpatel71/gists{/gist_id}","starred_url":"https://api.github.com/users/jpatel71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpatel71/subscriptions","organizations_url":"https://api.github.com/users/jpatel71/orgs","repos_url":"https://api.github.com/users/jpatel71/repos","events_url":"https://api.github.com/users/jpatel71/events{/privacy}","received_events_url":"https://api.github.com/users/jpatel71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T00:47:30Z","updated_at":"2015-03-09T01:05:27Z","closed_at":null,"body":"from what I can tell if I use the deep populate method with lean() the parent doc is returned as a JS object, but all the populated fields returned are still mongoose objects"},"comment":{"url":"https://api.github.com/repos/buunguyen/mongoose-deep-populate/issues/comments/77786486","html_url":"https://github.com/buunguyen/mongoose-deep-populate/issues/8#issuecomment-77786486","issue_url":"https://api.github.com/repos/buunguyen/mongoose-deep-populate/issues/8","id":77786486,"user":{"login":"buunguyen","id":406631,"avatar_url":"https://avatars.githubusercontent.com/u/406631?v=3","gravatar_id":"","url":"https://api.github.com/users/buunguyen","html_url":"https://github.com/buunguyen","followers_url":"https://api.github.com/users/buunguyen/followers","following_url":"https://api.github.com/users/buunguyen/following{/other_user}","gists_url":"https://api.github.com/users/buunguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/buunguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buunguyen/subscriptions","organizations_url":"https://api.github.com/users/buunguyen/orgs","repos_url":"https://api.github.com/users/buunguyen/repos","events_url":"https://api.github.com/users/buunguyen/events{/privacy}","received_events_url":"https://api.github.com/users/buunguyen/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T01:05:27Z","updated_at":"2015-03-09T01:05:27Z","body":"I haven't checked, but what is the behavior of the built-in Mongoose `populate` method? I want to keep the semantic the same. I'll probably check this later myself, but if you already know that, love to hear."}}