{"action":"created","issue":{"url":"https://api.github.com/repos/stems/join-monster/issues/117","repository_url":"https://api.github.com/repos/stems/join-monster","labels_url":"https://api.github.com/repos/stems/join-monster/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/stems/join-monster/issues/117/comments","events_url":"https://api.github.com/repos/stems/join-monster/issues/117/events","html_url":"https://github.com/stems/join-monster/issues/117","id":223637810,"number":117,"title":"GraphQLBoolean not mapped correctly","user":{"login":"yngwi","id":963440,"avatar_url":"https://avatars2.githubusercontent.com/u/963440?v=3","gravatar_id":"","url":"https://api.github.com/users/yngwi","html_url":"https://github.com/yngwi","followers_url":"https://api.github.com/users/yngwi/followers","following_url":"https://api.github.com/users/yngwi/following{/other_user}","gists_url":"https://api.github.com/users/yngwi/gists{/gist_id}","starred_url":"https://api.github.com/users/yngwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yngwi/subscriptions","organizations_url":"https://api.github.com/users/yngwi/orgs","repos_url":"https://api.github.com/users/yngwi/repos","events_url":"https://api.github.com/users/yngwi/events{/privacy}","received_events_url":"https://api.github.com/users/yngwi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-23T13:59:52Z","updated_at":"2017-04-24T07:03:48Z","closed_at":null,"body":"Hi,\r\nI'm building a small app to learn graphql with a MySQL backend. So far, everything works but I'm having a small problem with getting data from the database backend. I'm not sure if it is a problem with my code or with the library. I would be very glad if you could help me fix my problem.\r\n\r\nKind regards,\r\nDaniel\r\n\r\nProblem\r\n---------\r\n\r\nI have a type that includes a Boolean, declared as follows:\r\n```javascript\r\nis_verified: {\r\n    type: GraphQLBoolean,\r\n    description: 'Whether or not the user account was verified'\r\n }\r\n```\r\n\r\nThe database column is declared in a knex migration like this:\r\n```javascript\r\ntable.boolean('is_verified').notNullable().defaultTo(false);\r\n```\r\n\r\nWhen I create data with a mutation, the field entry is correctly set to `0` as MariaDB uses `TINYINT(1). ` internally to store Boolean values. When querying the data, it is seems to be correctly returned as `0`, I verified this by changing the type to `GraphQLInt`. As a Boolean, however, the returned value is `true`, not `false` as would have been correct. At least, that is what GraphiQL is displaying. Is that the expected behaviour?\r\n\r\nLibrary versions\r\n-----------------\r\njoin-monster: `1.2.1-beta.2`\r\nknex: `0.12.9`\r\nmariasql: `0.2.6`"},"comment":{"url":"https://api.github.com/repos/stems/join-monster/issues/comments/296548268","html_url":"https://github.com/stems/join-monster/issues/117#issuecomment-296548268","issue_url":"https://api.github.com/repos/stems/join-monster/issues/117","id":296548268,"user":{"login":"yngwi","id":963440,"avatar_url":"https://avatars2.githubusercontent.com/u/963440?v=3","gravatar_id":"","url":"https://api.github.com/users/yngwi","html_url":"https://github.com/yngwi","followers_url":"https://api.github.com/users/yngwi/followers","following_url":"https://api.github.com/users/yngwi/following{/other_user}","gists_url":"https://api.github.com/users/yngwi/gists{/gist_id}","starred_url":"https://api.github.com/users/yngwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yngwi/subscriptions","organizations_url":"https://api.github.com/users/yngwi/orgs","repos_url":"https://api.github.com/users/yngwi/repos","events_url":"https://api.github.com/users/yngwi/events{/privacy}","received_events_url":"https://api.github.com/users/yngwi/received_events","type":"User","site_admin":false},"created_at":"2017-04-24T07:03:48Z","updated_at":"2017-04-24T07:03:48Z","body":"Thanks!"}}
{"actor":{"display_login":"yngwi"}}