{"action":"created","issue":{"url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/1896","repository_url":"https://api.github.com/repos/rmosolgo/graphql-ruby","labels_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/1896/labels{/name}","comments_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/1896/comments","events_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/1896/events","html_url":"https://github.com/rmosolgo/graphql-ruby/issues/1896","id":368836469,"node_id":"MDU6SXNzdWUzNjg4MzY0Njk=","number":1896,"title":"Customized partial error for queries.","user":{"login":"RealSilo","id":10554687,"node_id":"MDQ6VXNlcjEwNTU0Njg3","avatar_url":"https://avatars1.githubusercontent.com/u/10554687?v=4","gravatar_id":"","url":"https://api.github.com/users/RealSilo","html_url":"https://github.com/RealSilo","followers_url":"https://api.github.com/users/RealSilo/followers","following_url":"https://api.github.com/users/RealSilo/following{/other_user}","gists_url":"https://api.github.com/users/RealSilo/gists{/gist_id}","starred_url":"https://api.github.com/users/RealSilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealSilo/subscriptions","organizations_url":"https://api.github.com/users/RealSilo/orgs","repos_url":"https://api.github.com/users/RealSilo/repos","events_url":"https://api.github.com/users/RealSilo/events{/privacy}","received_events_url":"https://api.github.com/users/RealSilo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-10T20:21:13Z","updated_at":"2018-10-11T00:31:58Z","closed_at":"2018-10-10T21:45:07Z","author_association":"NONE","body":"Is a customized partial query error like below supported?\r\n\r\nI was trying to add something like\r\n\r\n`context.add_error(GraphQL::ExecutionError.new(\"MSG to show to user\", ast_node: context.ast_node, options: { path: context.path }))`\r\n\r\non field resolver level, but did not work out with the path. Is this the right approach you think? If so what's the preferred way to make it happen?\r\n\r\n<img width=\"618\" alt=\"screen shot 2018-10-10 at 11 43 35\" src=\"https://user-images.githubusercontent.com/10554687/46763514-e5586d00-cc8e-11e8-987d-03c3ee932ce1.png\">\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/comments/428777433","html_url":"https://github.com/rmosolgo/graphql-ruby/issues/1896#issuecomment-428777433","issue_url":"https://api.github.com/repos/rmosolgo/graphql-ruby/issues/1896","id":428777433,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODc3NzQzMw==","user":{"login":"RealSilo","id":10554687,"node_id":"MDQ6VXNlcjEwNTU0Njg3","avatar_url":"https://avatars1.githubusercontent.com/u/10554687?v=4","gravatar_id":"","url":"https://api.github.com/users/RealSilo","html_url":"https://github.com/RealSilo","followers_url":"https://api.github.com/users/RealSilo/followers","following_url":"https://api.github.com/users/RealSilo/following{/other_user}","gists_url":"https://api.github.com/users/RealSilo/gists{/gist_id}","starred_url":"https://api.github.com/users/RealSilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealSilo/subscriptions","organizations_url":"https://api.github.com/users/RealSilo/orgs","repos_url":"https://api.github.com/users/RealSilo/repos","events_url":"https://api.github.com/users/RealSilo/events{/privacy}","received_events_url":"https://api.github.com/users/RealSilo/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T00:31:58Z","updated_at":"2018-10-11T00:31:58Z","author_association":"NONE","body":"Ahh, for some reason I thought this would return the error but the data would be an empty object.\r\nIs there a preferred way to quickly configure this, so all the resolvers add these errors by default. E.g. if a parent resource is nil (belong_to) or a child resource is nil (has_one) then the errors are added by default without raising them?"}}
{"actor":{"display_login":"RealSilo"}}