{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/graphql_java_gen/issues/20","repository_url":"https://api.github.com/repos/Shopify/graphql_java_gen","labels_url":"https://api.github.com/repos/Shopify/graphql_java_gen/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/graphql_java_gen/issues/20/comments","events_url":"https://api.github.com/repos/Shopify/graphql_java_gen/issues/20/events","html_url":"https://github.com/Shopify/graphql_java_gen/pull/20","id":215144968,"number":20,"title":"fix: Incomplete generated code when query/mutation not in schema","user":{"login":"rhysmccaig","id":2661536,"avatar_url":"https://avatars3.githubusercontent.com/u/2661536?v=3","gravatar_id":"","url":"https://api.github.com/users/rhysmccaig","html_url":"https://github.com/rhysmccaig","followers_url":"https://api.github.com/users/rhysmccaig/followers","following_url":"https://api.github.com/users/rhysmccaig/following{/other_user}","gists_url":"https://api.github.com/users/rhysmccaig/gists{/gist_id}","starred_url":"https://api.github.com/users/rhysmccaig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhysmccaig/subscriptions","organizations_url":"https://api.github.com/users/rhysmccaig/orgs","repos_url":"https://api.github.com/users/rhysmccaig/repos","events_url":"https://api.github.com/users/rhysmccaig/events{/privacy}","received_events_url":"https://api.github.com/users/rhysmccaig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-17T23:19:44Z","updated_at":"2017-03-22T01:01:45Z","closed_at":"2017-03-21T18:24:14Z","pull_request":{"url":"https://api.github.com/repos/Shopify/graphql_java_gen/pulls/20","html_url":"https://github.com/Shopify/graphql_java_gen/pull/20","diff_url":"https://github.com/Shopify/graphql_java_gen/pull/20.diff","patch_url":"https://github.com/Shopify/graphql_java_gen/pull/20.patch"},"body":"The current code does not properly generate code when only queries are defined in the grapnel schema. (And I believe there should also be issues when only mutations exist too)\r\n\r\nLine 26 in codegen/lib/graphql_java_gen/templates/APISchema.java.erb was the issue.\r\n\r\nI believe this PR fixes the problem. (Kid gloves please, I don't actually know ruby)\r\nAdded integration test for query only schema as well."},"comment":{"url":"https://api.github.com/repos/Shopify/graphql_java_gen/issues/comments/288266775","html_url":"https://github.com/Shopify/graphql_java_gen/pull/20#issuecomment-288266775","issue_url":"https://api.github.com/repos/Shopify/graphql_java_gen/issues/20","id":288266775,"user":{"login":"rhysmccaig","id":2661536,"avatar_url":"https://avatars3.githubusercontent.com/u/2661536?v=3","gravatar_id":"","url":"https://api.github.com/users/rhysmccaig","html_url":"https://github.com/rhysmccaig","followers_url":"https://api.github.com/users/rhysmccaig/followers","following_url":"https://api.github.com/users/rhysmccaig/following{/other_user}","gists_url":"https://api.github.com/users/rhysmccaig/gists{/gist_id}","starred_url":"https://api.github.com/users/rhysmccaig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhysmccaig/subscriptions","organizations_url":"https://api.github.com/users/rhysmccaig/orgs","repos_url":"https://api.github.com/users/rhysmccaig/repos","events_url":"https://api.github.com/users/rhysmccaig/events{/privacy}","received_events_url":"https://api.github.com/users/rhysmccaig/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T01:01:45Z","updated_at":"2017-03-22T01:01:45Z","body":"Thanks!"}}
{"actor":{"display_login":"rhysmccaig"}}