{"action":"created","issue":{"url":"https://api.github.com/repos/andimarek/graphql-java/issues/11","labels_url":"https://api.github.com/repos/andimarek/graphql-java/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/andimarek/graphql-java/issues/11/comments","events_url":"https://api.github.com/repos/andimarek/graphql-java/issues/11/events","html_url":"https://github.com/andimarek/graphql-java/issues/11","id":102371396,"number":11,"title":"dataFetcher on type?","user":{"login":"skwakman","id":1877200,"avatar_url":"https://avatars.githubusercontent.com/u/1877200?v=3","gravatar_id":"","url":"https://api.github.com/users/skwakman","html_url":"https://github.com/skwakman","followers_url":"https://api.github.com/users/skwakman/followers","following_url":"https://api.github.com/users/skwakman/following{/other_user}","gists_url":"https://api.github.com/users/skwakman/gists{/gist_id}","starred_url":"https://api.github.com/users/skwakman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skwakman/subscriptions","organizations_url":"https://api.github.com/users/skwakman/orgs","repos_url":"https://api.github.com/users/skwakman/repos","events_url":"https://api.github.com/users/skwakman/events{/privacy}","received_events_url":"https://api.github.com/users/skwakman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-21T12:41:15Z","updated_at":"2015-08-21T15:12:43Z","closed_at":null,"body":"Hi!\r\n\r\nI've been trying out your graphql java implementation and I found that it's not possible to add a datafetcher on the type level.  \r\n\r\nAlthough I don't think it's part of the spec (it doesn't seem to define how to define datafetcher-like functionality), the [javascript reference implementation](https://github.com/graphql/graphql-js) supports .resolve() on both fields and types. Perhaps something to add in a next version?"},"comment":{"url":"https://api.github.com/repos/andimarek/graphql-java/issues/comments/133458208","html_url":"https://github.com/andimarek/graphql-java/issues/11#issuecomment-133458208","issue_url":"https://api.github.com/repos/andimarek/graphql-java/issues/11","id":133458208,"user":{"login":"andimarek","id":1706744,"avatar_url":"https://avatars.githubusercontent.com/u/1706744?v=3","gravatar_id":"","url":"https://api.github.com/users/andimarek","html_url":"https://github.com/andimarek","followers_url":"https://api.github.com/users/andimarek/followers","following_url":"https://api.github.com/users/andimarek/following{/other_user}","gists_url":"https://api.github.com/users/andimarek/gists{/gist_id}","starred_url":"https://api.github.com/users/andimarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andimarek/subscriptions","organizations_url":"https://api.github.com/users/andimarek/orgs","repos_url":"https://api.github.com/users/andimarek/repos","events_url":"https://api.github.com/users/andimarek/events{/privacy}","received_events_url":"https://api.github.com/users/andimarek/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T15:12:43Z","updated_at":"2015-08-21T15:12:43Z","body":"Hi,\r\n\r\nI'm not sure I understand your proposal: You want a DataFetcher on a Type? I don't know if this makes sense ... could you give an example?\r\n\r\nThanks\r\n"}}