{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/2075","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/2075/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/2075/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/2075/events","html_url":"https://github.com/Automattic/mongoose/issues/2075","id":33504646,"number":2075,"title":"Marking field as populated manually?","user":{"login":"inca","id":118196,"avatar_url":"https://avatars.githubusercontent.com/u/118196?v=3","gravatar_id":"","url":"https://api.github.com/users/inca","html_url":"https://github.com/inca","followers_url":"https://api.github.com/users/inca/followers","following_url":"https://api.github.com/users/inca/following{/other_user}","gists_url":"https://api.github.com/users/inca/gists{/gist_id}","starred_url":"https://api.github.com/users/inca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inca/subscriptions","organizations_url":"https://api.github.com/users/inca/orgs","repos_url":"https://api.github.com/users/inca/repos","events_url":"https://api.github.com/users/inca/events{/privacy}","received_events_url":"https://api.github.com/users/inca/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/mongoose/labels/new%20feature","name":"new feature","color":"e102d8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Automattic/mongoose/milestones/2","html_url":"https://github.com/Automattic/mongoose/milestones/4.0","labels_url":"https://api.github.com/repos/Automattic/mongoose/milestones/2/labels","id":317160,"number":2,"title":"4.0","description":null,"creator":{"login":"aheckmann","id":166834,"avatar_url":"https://avatars.githubusercontent.com/u/166834?v=3","gravatar_id":"","url":"https://api.github.com/users/aheckmann","html_url":"https://github.com/aheckmann","followers_url":"https://api.github.com/users/aheckmann/followers","following_url":"https://api.github.com/users/aheckmann/following{/other_user}","gists_url":"https://api.github.com/users/aheckmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aheckmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aheckmann/subscriptions","organizations_url":"https://api.github.com/users/aheckmann/orgs","repos_url":"https://api.github.com/users/aheckmann/repos","events_url":"https://api.github.com/users/aheckmann/events{/privacy}","received_events_url":"https://api.github.com/users/aheckmann/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":19,"state":"closed","created_at":"2013-04-20T14:08:32Z","updated_at":"2015-02-06T22:30:54Z","due_on":null,"closed_at":"2015-02-06T22:30:54Z"},"comments":7,"created_at":"2014-05-14T15:44:07Z","updated_at":"2015-04-16T14:29:20Z","closed_at":"2014-12-05T17:19:14Z","body":"Let's say I have `group` and `member` documents, `member` was just created and `group` was fetched earlier.\r\n\r\nAfter `member.group = group` the `member.group` becomes `ObjectId` instead of document. The problem is that I need to use some virtuals, which, in turn, require full document, not just its id. Population works perfectly (awesome stuff, btw, thank you!), but the query is totally redundant as I already have that `group`.\r\n\r\nIs it possible to avoid this casting somehow? Or marking the `group` as it was populated?\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/93748510","html_url":"https://github.com/Automattic/mongoose/issues/2075#issuecomment-93748510","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/2075","id":93748510,"user":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T14:29:20Z","updated_at":"2015-04-16T14:29:20Z","body":"Not yet, see #2884 to track."}}