{"action":"opened","issue":{"url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/204","repository_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet","labels_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/204/comments","events_url":"https://api.github.com/repos/graphql-dotnet/graphql-dotnet/issues/204/events","html_url":"https://github.com/graphql-dotnet/graphql-dotnet/issues/204","id":186079756,"number":204,"title":"how to resolve types using structuremap?","user":{"login":"geocine","id":507464,"avatar_url":"https://avatars.githubusercontent.com/u/507464?v=3","gravatar_id":"","url":"https://api.github.com/users/geocine","html_url":"https://github.com/geocine","followers_url":"https://api.github.com/users/geocine/followers","following_url":"https://api.github.com/users/geocine/following{/other_user}","gists_url":"https://api.github.com/users/geocine/gists{/gist_id}","starred_url":"https://api.github.com/users/geocine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geocine/subscriptions","organizations_url":"https://api.github.com/users/geocine/orgs","repos_url":"https://api.github.com/users/geocine/repos","events_url":"https://api.github.com/users/geocine/events{/privacy}","received_events_url":"https://api.github.com/users/geocine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-29T13:54:11Z","updated_at":"2016-10-29T13:54:11Z","closed_at":null,"body":"I know this is not a `graphql-dotnet` issue but would you mind giving a hand how to do this using structuremap? I don't want to use the IoC in the sample because I already have structuremap in place\r\n\r\n```\r\ncontainer.Register<StarWarsQuery>();\r\ncontainer.Register<HumanType>();\r\ncontainer.Register<DroidType>();\r\ncontainer.Register<CharacterInterface>();\r\ncontainer.Singleton(new StarWarsSchema(type => (GraphType) container.Get(type)));\r\n```"}}
{"actor":{"display_login":"geocine"}}