{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/graphql/issues/259","repository_url":"https://api.github.com/repos/facebook/graphql","labels_url":"https://api.github.com/repos/facebook/graphql/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/facebook/graphql/issues/259/comments","events_url":"https://api.github.com/repos/facebook/graphql/issues/259/events","html_url":"https://github.com/facebook/graphql/issues/259","id":203037604,"number":259,"title":"Spec clarification: errors in list elements","user":{"login":"dllx","id":12693579,"avatar_url":"https://avatars3.githubusercontent.com/u/12693579?v=4","gravatar_id":"","url":"https://api.github.com/users/dllx","html_url":"https://github.com/dllx","followers_url":"https://api.github.com/users/dllx/followers","following_url":"https://api.github.com/users/dllx/following{/other_user}","gists_url":"https://api.github.com/users/dllx/gists{/gist_id}","starred_url":"https://api.github.com/users/dllx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dllx/subscriptions","organizations_url":"https://api.github.com/users/dllx/orgs","repos_url":"https://api.github.com/users/dllx/repos","events_url":"https://api.github.com/users/dllx/events{/privacy}","received_events_url":"https://api.github.com/users/dllx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-01-25T08:13:40Z","updated_at":"2018-05-01T03:38:10Z","closed_at":"2018-05-01T03:38:10Z","author_association":"NONE","body":"I think the relevant parts of the spec are \"6.4.4 Errors and Non-Nullability\" and \"3.1.7 Lists, result coercion\", which in my opinion do not clarify the following:\r\n\r\nIf a field of type `[String]` is queried, and an error occurs during determining the value of the second item, would the result of the field be `null` or would it be `[\"elA\", null, \"elC\"]`?\r\n\r\nSection 3.1.7 says\r\n>Each item in the list must be the result of a result coercion of the item type. If a reasonable coercion is not possible they must raise a field error.\r\n\r\nThe question is the \"granularity\" of the field error and the returned null value: is it constrained to the field as a whole or can it apply to list items?\r\n\r\nIn the second case, would there be one \"field error\" listing all single item errors or would there be multiple field errors? Also, in this case the null propagation of section 6.4.4 should be applied: in a `[String!]` field, the whole list should be set to null. This would then extend to nested lists: `[[String!]]` should return a null item in the outer list.\r\n\r\nAn argument against the first case is:\r\nReturning `null` for the whole field would lose the items that could be determined.\r\n\r\nCould please the specification be extended to include a clarification on what GraphQL is expected to do in this case?"},"comment":{"url":"https://api.github.com/repos/facebook/graphql/issues/comments/385591788","html_url":"https://github.com/facebook/graphql/issues/259#issuecomment-385591788","issue_url":"https://api.github.com/repos/facebook/graphql/issues/259","id":385591788,"user":{"login":"leebyron","id":50130,"avatar_url":"https://avatars3.githubusercontent.com/u/50130?v=4","gravatar_id":"","url":"https://api.github.com/users/leebyron","html_url":"https://github.com/leebyron","followers_url":"https://api.github.com/users/leebyron/followers","following_url":"https://api.github.com/users/leebyron/following{/other_user}","gists_url":"https://api.github.com/users/leebyron/gists{/gist_id}","starred_url":"https://api.github.com/users/leebyron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebyron/subscriptions","organizations_url":"https://api.github.com/users/leebyron/orgs","repos_url":"https://api.github.com/users/leebyron/repos","events_url":"https://api.github.com/users/leebyron/events{/privacy}","received_events_url":"https://api.github.com/users/leebyron/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T03:38:10Z","updated_at":"2018-05-01T03:38:10Z","author_association":"COLLABORATOR","body":"Added copy for this in #436 about errors applying to each item in a list"}}
{"actor":{"display_login":"leebyron"}}