{"action":"opened","issue":{"url":"https://api.github.com/repos/webonyx/graphql-php/issues/6","labels_url":"https://api.github.com/repos/webonyx/graphql-php/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/webonyx/graphql-php/issues/6/comments","events_url":"https://api.github.com/repos/webonyx/graphql-php/issues/6/events","html_url":"https://github.com/webonyx/graphql-php/issues/6","id":110742332,"number":6,"title":"Use of map() where parent type is a node","user":{"login":"johanobergman","id":6485774,"avatar_url":"https://avatars.githubusercontent.com/u/6485774?v=3","gravatar_id":"","url":"https://api.github.com/users/johanobergman","html_url":"https://github.com/johanobergman","followers_url":"https://api.github.com/users/johanobergman/followers","following_url":"https://api.github.com/users/johanobergman/following{/other_user}","gists_url":"https://api.github.com/users/johanobergman/gists{/gist_id}","starred_url":"https://api.github.com/users/johanobergman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanobergman/subscriptions","organizations_url":"https://api.github.com/users/johanobergman/orgs","repos_url":"https://api.github.com/users/johanobergman/repos","events_url":"https://api.github.com/users/johanobergman/events{/privacy}","received_events_url":"https://api.github.com/users/johanobergman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T21:53:50Z","updated_at":"2015-10-09T21:53:50Z","closed_at":null,"body":"Resolving fields with `map` works really well (and fast!) when the parent type is a list. However, when using Relay connections, it's impossible to use `map` on the \"connected\" type, since its parent is an edge and not the list of edges.\r\nAn example:\r\n`UserType -> todos -> TodoConnection -> edges -> EdgeType -> node -> TodoType -> items*`\r\nI want to use `map` on `items` but I cant since the root argument will contain an array with only one element - the edge.\r\n\r\nIs there any way to work around this, or is it perhaps something you would consider improving?"}}