{"action":"opened","issue":{"url":"https://api.github.com/repos/graphql-go/graphql/issues/275","repository_url":"https://api.github.com/repos/graphql-go/graphql","labels_url":"https://api.github.com/repos/graphql-go/graphql/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/graphql-go/graphql/issues/275/comments","events_url":"https://api.github.com/repos/graphql-go/graphql/issues/275/events","html_url":"https://github.com/graphql-go/graphql/issues/275","id":293707008,"number":275,"title":"What is the canonical approach to passing arguments down a tree?","user":{"login":"alankm","id":16125743,"avatar_url":"https://avatars0.githubusercontent.com/u/16125743?v=4","gravatar_id":"","url":"https://api.github.com/users/alankm","html_url":"https://github.com/alankm","followers_url":"https://api.github.com/users/alankm/followers","following_url":"https://api.github.com/users/alankm/following{/other_user}","gists_url":"https://api.github.com/users/alankm/gists{/gist_id}","starred_url":"https://api.github.com/users/alankm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alankm/subscriptions","organizations_url":"https://api.github.com/users/alankm/orgs","repos_url":"https://api.github.com/users/alankm/repos","events_url":"https://api.github.com/users/alankm/events{/privacy}","received_events_url":"https://api.github.com/users/alankm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T22:29:12Z","updated_at":"2018-02-01T22:29:12Z","closed_at":null,"author_association":"NONE","body":"If I wanted to construct a schema that allowed the following query to occur:\r\n\r\n```\r\n{\r\n  country(name: \"USA\"){\r\n    city(name: \"San Francisco\"){\r\n      street(name: \"Second Street\"){\r\n        location\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nWhat is the best approach for providing the 'Resolve' function with all three arguments? Assume in this case that it's impossible to resolve the street information without also knowing the country and city. \r\n\r\nThe graphql.ResolveParams object passes the street name to the Resolve function, and the city name can usually be determined from the ResolveParams 'Source' field, but how can we get the country name? Does the information appear in the Info field (a ResolveInfo object, which is uncommented and undocumented)?"}}
{"actor":{"display_login":"alankm"}}