{"action":"opened","issue":{"url":"https://api.github.com/repos/apollographql/apollo-client/issues/3366","repository_url":"https://api.github.com/repos/apollographql/apollo-client","labels_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3366/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3366/comments","events_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3366/events","html_url":"https://github.com/apollographql/apollo-client/issues/3366","id":317224945,"number":3366,"title":"Refetch query based on @connection directive","user":{"login":"marcel-devdude","id":1384371,"avatar_url":"https://avatars3.githubusercontent.com/u/1384371?v=4","gravatar_id":"","url":"https://api.github.com/users/marcel-devdude","html_url":"https://github.com/marcel-devdude","followers_url":"https://api.github.com/users/marcel-devdude/followers","following_url":"https://api.github.com/users/marcel-devdude/following{/other_user}","gists_url":"https://api.github.com/users/marcel-devdude/gists{/gist_id}","starred_url":"https://api.github.com/users/marcel-devdude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcel-devdude/subscriptions","organizations_url":"https://api.github.com/users/marcel-devdude/orgs","repos_url":"https://api.github.com/users/marcel-devdude/repos","events_url":"https://api.github.com/users/marcel-devdude/events{/privacy}","received_events_url":"https://api.github.com/users/marcel-devdude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-24T13:25:58Z","updated_at":"2018-04-24T13:25:58Z","closed_at":null,"author_association":"NONE","body":"**Intended outcome:**\r\nRefetch a query based on the given key in the `@connection` directive.\r\n\r\n**Actual outcome:**\r\nQuery is not being refetched and not accessible by the cache.\r\n\r\n**How to reproduce the issue:**\r\nI have a paged query like this:\r\n\r\n```\r\nquery Comments {\r\n  comments(first: $first, offset: $offset) @connection(key: \"foobar\") {\r\n    edges: {\r\n      ...\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAnd a mutation like this:\r\n\r\n```\r\n<Mutation mutation={deleteComment} refetchQueries={['foobar']} />\r\n```\r\n\r\nI would expect, that i can use the \"stable\" Store-Key to address the query in the `refetchQueries` prop. I also tried to access the query in the `update` method in the mutation with `cache.readQuery('foobar')`. But it did not work as expected.\r\n\r\n\r\n**Version**\r\n- apollo-client@2.0.1"}}
{"actor":{"display_login":"marcel-devdude"}}