{"action":"created","issue":{"url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/383","repository_url":"https://api.github.com/repos/rmosolgo/graphql-ruby","labels_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/383/comments","events_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/383/events","html_url":"https://github.com/rmosolgo/graphql-ruby/issues/383","id":187889952,"number":383,"title":"Introspection query sets type name to null","user":{"login":"gauravtiwari","id":771039,"avatar_url":"https://avatars.githubusercontent.com/u/771039?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravtiwari","html_url":"https://github.com/gauravtiwari","followers_url":"https://api.github.com/users/gauravtiwari/followers","following_url":"https://api.github.com/users/gauravtiwari/following{/other_user}","gists_url":"https://api.github.com/users/gauravtiwari/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravtiwari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravtiwari/subscriptions","organizations_url":"https://api.github.com/users/gauravtiwari/orgs","repos_url":"https://api.github.com/users/gauravtiwari/repos","events_url":"https://api.github.com/users/gauravtiwari/events{/privacy}","received_events_url":"https://api.github.com/users/gauravtiwari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-08T03:03:15Z","updated_at":"2016-11-08T03:25:05Z","closed_at":null,"body":"Hey @rmosolgo \r\n\r\nGetting following error when using 1.2 version (`graphql-js`) with Relay and also in GraphiQL\r\n\r\n```js\r\nSyntax Error GraphQL (1:1) Unexpected Name \"null\"\r\n\r\n1: null\r\n   ^\r\n```\r\n\r\nIt looks like in Schema it sets the type name to `null`\r\n\r\n```json\r\n {\r\n                  \"name\": \"id\",\r\n                  \"description\": null,\r\n                  \"type\": {\r\n                    \"kind\": \"NON_NULL\",\r\n                    \"name\": null,\r\n                    \"ofType\": {\r\n                      \"kind\": \"SCALAR\",\r\n                      \"name\": \"String\",\r\n                      \"ofType\": null\r\n         }\r\n   },\r\n```"},"comment":{"url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/comments/259035305","html_url":"https://github.com/rmosolgo/graphql-ruby/issues/383#issuecomment-259035305","issue_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/383","id":259035305,"user":{"login":"gauravtiwari","id":771039,"avatar_url":"https://avatars.githubusercontent.com/u/771039?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravtiwari","html_url":"https://github.com/gauravtiwari","followers_url":"https://api.github.com/users/gauravtiwari/followers","following_url":"https://api.github.com/users/gauravtiwari/following{/other_user}","gists_url":"https://api.github.com/users/gauravtiwari/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravtiwari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravtiwari/subscriptions","organizations_url":"https://api.github.com/users/gauravtiwari/orgs","repos_url":"https://api.github.com/users/gauravtiwari/repos","events_url":"https://api.github.com/users/gauravtiwari/events{/privacy}","received_events_url":"https://api.github.com/users/gauravtiwari/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T03:25:05Z","updated_at":"2016-11-08T03:25:05Z","body":"@rmosolgo Yup that makes sense. The error comes when validating schema with GraphQL(javascript) on client side. Relay uses it under the hood to parse the schema. Perhaps, this needs to be fixed on JS version of GraphQL."}}
{"actor":{"display_login":"gauravtiwari"}}