{"action":"closed","issue":{"url":"https://api.github.com/repos/graphql/graphql-js/issues/369","repository_url":"https://api.github.com/repos/graphql/graphql-js","labels_url":"https://api.github.com/repos/graphql/graphql-js/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/graphql/graphql-js/issues/369/comments","events_url":"https://api.github.com/repos/graphql/graphql-js/issues/369/events","html_url":"https://github.com/graphql/graphql-js/issues/369","id":150928390,"number":369,"title":"Introspection query field 'location' on type 'directive' returns an error","user":{"login":"nikhilaravi","id":5912647,"avatar_url":"https://avatars.githubusercontent.com/u/5912647?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhilaravi","html_url":"https://github.com/nikhilaravi","followers_url":"https://api.github.com/users/nikhilaravi/followers","following_url":"https://api.github.com/users/nikhilaravi/following{/other_user}","gists_url":"https://api.github.com/users/nikhilaravi/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilaravi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilaravi/subscriptions","organizations_url":"https://api.github.com/users/nikhilaravi/orgs","repos_url":"https://api.github.com/users/nikhilaravi/repos","events_url":"https://api.github.com/users/nikhilaravi/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilaravi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-25T17:12:58Z","updated_at":"2016-04-26T09:09:22Z","closed_at":"2016-04-26T09:09:22Z","body":"An introspection query using the `introspectionQuery` from `graphql/utilities` returns this error. \r\n```\r\n[\r\n  {\r\n    \"message\": \"Cannot query field \\\"locations\\\" on type \\\"__Directive\\\".\"\r\n  }\r\n]\r\n```\r\nreferring to this line in the query: https://github.com/graphql/graphql-js/blob/master/src/utilities/introspectionQuery.js#L26\r\n\r\nI instead tried using the introspectionQuerySansSubscriptions from `graphiql` and it works as expected. https://github.com/graphql/graphiql/blob/2824165499f2706d3ccc70ee51bf2bb5fa045fba/src/utility/introspectionQueries.js\r\n\r\nI just wanted to know if there is an explanation for why the introspectionQuery from graphql utilities fails.  "}}