{"action":"created","issue":{"url":"https://api.github.com/repos/GroundMeteor/minimax/issues/5","labels_url":"https://api.github.com/repos/GroundMeteor/minimax/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/GroundMeteor/minimax/issues/5/comments","events_url":"https://api.github.com/repos/GroundMeteor/minimax/issues/5/events","html_url":"https://github.com/GroundMeteor/minimax/issues/5","id":92947599,"number":5,"title":"Maxify does not recreate _id properly when it is ObjectID ","user":{"login":"GunnarSturla","id":5880379,"avatar_url":"https://avatars.githubusercontent.com/u/5880379?v=3","gravatar_id":"","url":"https://api.github.com/users/GunnarSturla","html_url":"https://github.com/GunnarSturla","followers_url":"https://api.github.com/users/GunnarSturla/followers","following_url":"https://api.github.com/users/GunnarSturla/following{/other_user}","gists_url":"https://api.github.com/users/GunnarSturla/gists{/gist_id}","starred_url":"https://api.github.com/users/GunnarSturla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GunnarSturla/subscriptions","organizations_url":"https://api.github.com/users/GunnarSturla/orgs","repos_url":"https://api.github.com/users/GunnarSturla/repos","events_url":"https://api.github.com/users/GunnarSturla/events{/privacy}","received_events_url":"https://api.github.com/users/GunnarSturla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T23:16:56Z","updated_at":"2015-07-30T13:16:00Z","closed_at":null,"body":"I have a collection where the `_id`s are Mongo ObectID's and kept getting `Error: Meteor does not currently support objects other than ObjectID as ids`. \r\n\r\nA colleague of mine and I located the error in minimax's method of maxifying `_id`s; they are recreated as regular Objects with `_str `attribute, which minimongo does not accept.\r\n\r\nOur solution was adding a check to see if the document being maxified had an `_id._str` attribute and in those cases recreate the `_id` as `Meteor.Collection.ObectID(_id._str)`\r\n\r\nI'll send a pull request shortly with our fix, but I thought I'd create an issue first"},"comment":{"url":"https://api.github.com/repos/GroundMeteor/minimax/issues/comments/126319802","html_url":"https://github.com/GroundMeteor/minimax/issues/5#issuecomment-126319802","issue_url":"https://api.github.com/repos/GroundMeteor/minimax/issues/5","id":126319802,"user":{"login":"raix","id":1136718,"avatar_url":"https://avatars.githubusercontent.com/u/1136718?v=3","gravatar_id":"","url":"https://api.github.com/users/raix","html_url":"https://github.com/raix","followers_url":"https://api.github.com/users/raix/followers","following_url":"https://api.github.com/users/raix/following{/other_user}","gists_url":"https://api.github.com/users/raix/gists{/gist_id}","starred_url":"https://api.github.com/users/raix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raix/subscriptions","organizations_url":"https://api.github.com/users/raix/orgs","repos_url":"https://api.github.com/users/raix/repos","events_url":"https://api.github.com/users/raix/events{/privacy}","received_events_url":"https://api.github.com/users/raix/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T13:16:00Z","updated_at":"2015-07-30T13:16:00Z","body":"it's sort of related to https://github.com/GroundMeteor/db/issues/82\r\n`lists.insert({'_id':new Mongo.Collection.ObjectID(),'name':name});`"}}