{"action":"closed","issue":{"url":"https://api.github.com/repos/graphql/graphql-js/issues/170","labels_url":"https://api.github.com/repos/graphql/graphql-js/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/graphql/graphql-js/issues/170/comments","events_url":"https://api.github.com/repos/graphql/graphql-js/issues/170/events","html_url":"https://github.com/graphql/graphql-js/issues/170","id":105060200,"number":170,"title":"Inject Orphan Types in schema","user":{"login":"Sandreu","id":1159585,"avatar_url":"https://avatars.githubusercontent.com/u/1159585?v=3","gravatar_id":"","url":"https://api.github.com/users/Sandreu","html_url":"https://github.com/Sandreu","followers_url":"https://api.github.com/users/Sandreu/followers","following_url":"https://api.github.com/users/Sandreu/following{/other_user}","gists_url":"https://api.github.com/users/Sandreu/gists{/gist_id}","starred_url":"https://api.github.com/users/Sandreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sandreu/subscriptions","organizations_url":"https://api.github.com/users/Sandreu/orgs","repos_url":"https://api.github.com/users/Sandreu/repos","events_url":"https://api.github.com/users/Sandreu/events{/privacy}","received_events_url":"https://api.github.com/users/Sandreu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-06T01:14:24Z","updated_at":"2015-09-09T15:31:28Z","closed_at":"2015-09-09T15:31:28Z","body":"Hello,\r\n\r\nI noticed in GraphiQL that I had an unrecognized fragment type, I understood that my type wasn't in the schema introspection, but my request works fine.\r\n\r\nI was in this situation\r\n\r\n```\r\nInterface Foo { a, b }\r\nobj Bar interfaces Foo {a, b, c }\r\n```\r\n\r\nand I tried to query\r\n```\r\nFoo {\r\n    a,\r\n    b,\r\n   ... on Bar {c}\r\n}\r\n```\r\nI will not have queries or graph relationship with Bar directly... so my introspection is partial...\r\n \r\nI took a look and I saw that push the new type in `schema._typeMap` works fine and I can't see any side effect...\r\n\r\nIf you agree to a schema.injectType() function, I can PR.\r\n\r\nRegards"}}