{"action":"created","issue":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/91","labels_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/91/comments","events_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/91/events","html_url":"https://github.com/jagi/meteor-astronomy/issues/91","id":105237616,"number":91,"title":"`type: 'number'` doesn't seem to actually cast properly","user":{"login":"shadowRR","id":13820157,"avatar_url":"https://avatars.githubusercontent.com/u/13820157?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowRR","html_url":"https://github.com/shadowRR","followers_url":"https://api.github.com/users/shadowRR/followers","following_url":"https://api.github.com/users/shadowRR/following{/other_user}","gists_url":"https://api.github.com/users/shadowRR/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowRR/subscriptions","organizations_url":"https://api.github.com/users/shadowRR/orgs","repos_url":"https://api.github.com/users/shadowRR/repos","events_url":"https://api.github.com/users/shadowRR/events{/privacy}","received_events_url":"https://api.github.com/users/shadowRR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-09-07T15:38:01Z","updated_at":"2015-09-07T21:42:23Z","closed_at":null,"body":"Was wondering if i'm doing anything wrong with the type selection on a schema, since i'm using `type: \"number\"`, which reading from the documentation, should cast the value as integer (or float), but it's still saved as string in mongo ? Do i have to do something else to get it to be saved as integer or float ?"},"comment":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/comments/138382639","html_url":"https://github.com/jagi/meteor-astronomy/issues/91#issuecomment-138382639","issue_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/91","id":138382639,"user":{"login":"cwohlman","id":4643896,"avatar_url":"https://avatars.githubusercontent.com/u/4643896?v=3","gravatar_id":"","url":"https://api.github.com/users/cwohlman","html_url":"https://github.com/cwohlman","followers_url":"https://api.github.com/users/cwohlman/followers","following_url":"https://api.github.com/users/cwohlman/following{/other_user}","gists_url":"https://api.github.com/users/cwohlman/gists{/gist_id}","starred_url":"https://api.github.com/users/cwohlman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwohlman/subscriptions","organizations_url":"https://api.github.com/users/cwohlman/orgs","repos_url":"https://api.github.com/users/cwohlman/repos","events_url":"https://api.github.com/users/cwohlman/events{/privacy}","received_events_url":"https://api.github.com/users/cwohlman/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T21:42:23Z","updated_at":"2015-09-07T21:42:23Z","body":"The way I look at it `type` is the type of the field, `itemType` is the\ntype of the items in the field, e.g. the object or objects which will be in\nthe field.\n\nThe reason I don't like `nested` is because it feels like a boolean field\nto me.\n"}}