{"action":"created","issue":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/87","labels_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/87/comments","events_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/87/events","html_url":"https://github.com/jagi/meteor-astronomy/issues/87","id":104391414,"number":87,"title":"beforeremove/afterremove: 'this' only has _id","user":{"login":"JulianKingman","id":1566400,"avatar_url":"https://avatars.githubusercontent.com/u/1566400?v=3","gravatar_id":"","url":"https://api.github.com/users/JulianKingman","html_url":"https://github.com/JulianKingman","followers_url":"https://api.github.com/users/JulianKingman/followers","following_url":"https://api.github.com/users/JulianKingman/following{/other_user}","gists_url":"https://api.github.com/users/JulianKingman/gists{/gist_id}","starred_url":"https://api.github.com/users/JulianKingman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulianKingman/subscriptions","organizations_url":"https://api.github.com/users/JulianKingman/orgs","repos_url":"https://api.github.com/users/JulianKingman/repos","events_url":"https://api.github.com/users/JulianKingman/events{/privacy}","received_events_url":"https://api.github.com/users/JulianKingman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T02:41:39Z","updated_at":"2015-09-02T07:43:43Z","closed_at":null,"body":"I'm performing some functions using the beforeremove (I was actually using afterremove, but beforeremove is easier to debug). If I have the following:\r\n````javascript\r\nbeforeremove: function(){\r\n    console.log(this);\r\n}\r\n````\r\nI get a mostly empty document with only the _id. Is this how it is supposed to work? I assume I should be able to get the rest of the object? It clearly has more fields with data, they show as null."},"comment":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/comments/136964341","html_url":"https://github.com/jagi/meteor-astronomy/issues/87#issuecomment-136964341","issue_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/87","id":136964341,"user":{"login":"jagi","id":1051229,"avatar_url":"https://avatars.githubusercontent.com/u/1051229?v=3","gravatar_id":"","url":"https://api.github.com/users/jagi","html_url":"https://github.com/jagi","followers_url":"https://api.github.com/users/jagi/followers","following_url":"https://api.github.com/users/jagi/following{/other_user}","gists_url":"https://api.github.com/users/jagi/gists{/gist_id}","starred_url":"https://api.github.com/users/jagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagi/subscriptions","organizations_url":"https://api.github.com/users/jagi/orgs","repos_url":"https://api.github.com/users/jagi/repos","events_url":"https://api.github.com/users/jagi/events{/privacy}","received_events_url":"https://api.github.com/users/jagi/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T07:43:43Z","updated_at":"2015-09-02T07:43:43Z","body":"Yes it has. However you have to know that when using the console.log(object) you're using a reference to the object. Because of that when you investigate the object in the console it doesn't have a state from the moment you printed it to the console. Instead, it has a star from the moment you're investigating it, so the object does not exist. You have to do something like this:\r\n\r\n```js\r\nconsole.log(EJSON.stringify(this.get()));\r\n```\r\n\r\nOr any other technic that would convert a reference to the string. If you don't want to do that, it's better to use chrome debugger and set breakpoints."}}