{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/mongoose-crud/issues/25","repository_url":"https://api.github.com/repos/ga-wdi-boston/mongoose-crud","labels_url":"https://api.github.com/repos/ga-wdi-boston/mongoose-crud/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/mongoose-crud/issues/25/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/mongoose-crud/issues/25/events","html_url":"https://github.com/ga-wdi-boston/mongoose-crud/issues/25","id":164135887,"number":25,"title":"Does this code work? (From README)","user":{"login":"payne-chris-r","id":12667121,"avatar_url":"https://avatars.githubusercontent.com/u/12667121?v=3","gravatar_id":"","url":"https://api.github.com/users/payne-chris-r","html_url":"https://github.com/payne-chris-r","followers_url":"https://api.github.com/users/payne-chris-r/followers","following_url":"https://api.github.com/users/payne-chris-r/following{/other_user}","gists_url":"https://api.github.com/users/payne-chris-r/gists{/gist_id}","starred_url":"https://api.github.com/users/payne-chris-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/payne-chris-r/subscriptions","organizations_url":"https://api.github.com/users/payne-chris-r/orgs","repos_url":"https://api.github.com/users/payne-chris-r/repos","events_url":"https://api.github.com/users/payne-chris-r/events{/privacy}","received_events_url":"https://api.github.com/users/payne-chris-r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-06T17:54:08Z","updated_at":"2016-07-06T18:30:07Z","closed_at":null,"body":"```js\r\nconst someSchema = new mongoose.Schema({\r\n  name: {\r\n    given: {\r\n      type: String\r\n      set: capitalize\r\n    },\r\n    surname:  {\r\n      type: String\r\n      set: capitalize\r\n    },\r\n  }\r\n  location: {\r\n    type: String,\r\n    default: 'Boston'\r\n  }\r\n});\r\n```\r\nIt has no `,` after String, and atom doesn't seem to know what `capitalize` is. Do we need to require something else? I think this syntax is incorrect..."},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/mongoose-crud/issues/comments/230862685","html_url":"https://github.com/ga-wdi-boston/mongoose-crud/issues/25#issuecomment-230862685","issue_url":"https://api.github.com/repos/ga-wdi-boston/mongoose-crud/issues/25","id":230862685,"user":{"login":"payne-chris-r","id":12667121,"avatar_url":"https://avatars.githubusercontent.com/u/12667121?v=3","gravatar_id":"","url":"https://api.github.com/users/payne-chris-r","html_url":"https://github.com/payne-chris-r","followers_url":"https://api.github.com/users/payne-chris-r/followers","following_url":"https://api.github.com/users/payne-chris-r/following{/other_user}","gists_url":"https://api.github.com/users/payne-chris-r/gists{/gist_id}","starred_url":"https://api.github.com/users/payne-chris-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/payne-chris-r/subscriptions","organizations_url":"https://api.github.com/users/payne-chris-r/orgs","repos_url":"https://api.github.com/users/payne-chris-r/repos","events_url":"https://api.github.com/users/payne-chris-r/events{/privacy}","received_events_url":"https://api.github.com/users/payne-chris-r/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T18:30:07Z","updated_at":"2016-07-06T18:30:07Z","body":"Update! No. It does not. It needs this:\r\n```js\r\nfunction capitalize (val) {\r\n  if (typeof val !== 'string') val = '';\r\n  return val.charAt(0).toUpperCase() + val.substring(1);\r\n}\r\n```"}}
{"actor":{"display_login":"payne-chris-r"}}