{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-collection2/issues/341","repository_url":"https://api.github.com/repos/aldeed/meteor-collection2","labels_url":"https://api.github.com/repos/aldeed/meteor-collection2/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-collection2/issues/341/comments","events_url":"https://api.github.com/repos/aldeed/meteor-collection2/issues/341/events","html_url":"https://github.com/aldeed/meteor-collection2/issues/341","id":168618639,"number":341,"title":"Error with Meteor 1.4","user":{"login":"nicooprat","id":645641,"avatar_url":"https://avatars.githubusercontent.com/u/645641?v=3","gravatar_id":"","url":"https://api.github.com/users/nicooprat","html_url":"https://github.com/nicooprat","followers_url":"https://api.github.com/users/nicooprat/followers","following_url":"https://api.github.com/users/nicooprat/following{/other_user}","gists_url":"https://api.github.com/users/nicooprat/gists{/gist_id}","starred_url":"https://api.github.com/users/nicooprat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicooprat/subscriptions","organizations_url":"https://api.github.com/users/nicooprat/orgs","repos_url":"https://api.github.com/users/nicooprat/repos","events_url":"https://api.github.com/users/nicooprat/events{/privacy}","received_events_url":"https://api.github.com/users/nicooprat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-01T10:49:12Z","updated_at":"2016-08-03T15:59:58Z","closed_at":null,"body":"Just tried to upgrade to Meteor 1.4.0.1, and I got this kind of errors: \"0 must be a string\". For example, my field schema is defined like this:\r\n\r\n````js\r\nstories: {\r\n  type: [String],\r\n  defaultValue: [],\r\n  optional: true\r\n}\r\n````\r\n\r\nAnd I'm updating it like this:\r\n\r\n````js\r\nUsers.update(userId, {\r\n  $push: {\r\n    stories: doc._id\r\n  }\r\n});\r\n````\r\n\r\nDebugger; tells me that `doc._id` is correctly defined. Am I doing anything wrong?\r\n\r\nDowngraded to 1.3.5.1, working fine again. May be related to the Mongo 3.x update?"},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-collection2/issues/comments/237281814","html_url":"https://github.com/aldeed/meteor-collection2/issues/341#issuecomment-237281814","issue_url":"https://api.github.com/repos/aldeed/meteor-collection2/issues/341","id":237281814,"user":{"login":"serkandurusoy","id":4649948,"avatar_url":"https://avatars.githubusercontent.com/u/4649948?v=3","gravatar_id":"","url":"https://api.github.com/users/serkandurusoy","html_url":"https://github.com/serkandurusoy","followers_url":"https://api.github.com/users/serkandurusoy/followers","following_url":"https://api.github.com/users/serkandurusoy/following{/other_user}","gists_url":"https://api.github.com/users/serkandurusoy/gists{/gist_id}","starred_url":"https://api.github.com/users/serkandurusoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkandurusoy/subscriptions","organizations_url":"https://api.github.com/users/serkandurusoy/orgs","repos_url":"https://api.github.com/users/serkandurusoy/repos","events_url":"https://api.github.com/users/serkandurusoy/events{/privacy}","received_events_url":"https://api.github.com/users/serkandurusoy/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T15:59:58Z","updated_at":"2016-08-03T15:59:58Z","body":"Did you try type casting that `0` to string with `toString()` or `''+doc._id` as a workaround to whatever may be causing that issue? And is `doc._id` maybe actually `=== 0` ?"}}
{"actor":{"display_login":"serkandurusoy"}}