{"action":"opened","issue":{"url":"https://api.github.com/repos/99designs/gqlgen/issues/431","repository_url":"https://api.github.com/repos/99designs/gqlgen","labels_url":"https://api.github.com/repos/99designs/gqlgen/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/99designs/gqlgen/issues/431/comments","events_url":"https://api.github.com/repos/99designs/gqlgen/issues/431/events","html_url":"https://github.com/99designs/gqlgen/issues/431","id":380770249,"node_id":"MDU6SXNzdWUzODA3NzAyNDk=","number":431,"title":"Directive on FIELD_DEFINITION returns whole object null","user":{"login":"sandeepone","id":950645,"node_id":"MDQ6VXNlcjk1MDY0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/950645?v=4","gravatar_id":"","url":"https://api.github.com/users/sandeepone","html_url":"https://github.com/sandeepone","followers_url":"https://api.github.com/users/sandeepone/followers","following_url":"https://api.github.com/users/sandeepone/following{/other_user}","gists_url":"https://api.github.com/users/sandeepone/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepone/subscriptions","organizations_url":"https://api.github.com/users/sandeepone/orgs","repos_url":"https://api.github.com/users/sandeepone/repos","events_url":"https://api.github.com/users/sandeepone/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-14T16:08:22Z","updated_at":"2018-11-14T16:08:22Z","closed_at":null,"author_association":"NONE","body":"### Expected Behaviour\r\nDirective on field makes whole object to null instead of the ```done``` field. The todo example in the repo.\r\n```\r\n    done: Boolean! @hasRole(role: OWNER) # only the owner can see if a todo is done\r\n```\r\n\r\nOnly the ```done``` field needs to return null\r\n```\r\n\"todo\": {\r\nid: 1\r\ntext: \"Somebody else's todo\"\r\ndone: null\r\n}\r\n```\r\n\r\n### Actual Behavior\r\n\r\nWhole todo returns null\r\n```\r\n\"todo\": null\r\n```\r\n\r\n### Minimal graphql.schema and models to reproduce\r\nhttps://github.com/99designs/gqlgen/blob/02a1935255fadced7f122dff7f2a9f54546c9d61/example/todo/schema.graphql#L20"}}
{"actor":{"display_login":"sandeepone"}}