{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/899","repository_url":"https://api.github.com/repos/apollostack/apollo-client","labels_url":"https://api.github.com/repos/apollostack/apollo-client/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-client/issues/899/comments","events_url":"https://api.github.com/repos/apollostack/apollo-client/issues/899/events","html_url":"https://github.com/apollostack/apollo-client/issues/899","id":188891113,"number":899,"title":"Best practice when a mutation deletes an object","user":{"login":"yurigenin","id":11202960,"avatar_url":"https://avatars.githubusercontent.com/u/11202960?v=3","gravatar_id":"","url":"https://api.github.com/users/yurigenin","html_url":"https://github.com/yurigenin","followers_url":"https://api.github.com/users/yurigenin/followers","following_url":"https://api.github.com/users/yurigenin/following{/other_user}","gists_url":"https://api.github.com/users/yurigenin/gists{/gist_id}","starred_url":"https://api.github.com/users/yurigenin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurigenin/subscriptions","organizations_url":"https://api.github.com/users/yurigenin/orgs","repos_url":"https://api.github.com/users/yurigenin/repos","events_url":"https://api.github.com/users/yurigenin/events{/privacy}","received_events_url":"https://api.github.com/users/yurigenin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-12T04:12:34Z","updated_at":"2016-11-16T15:51:19Z","closed_at":null,"body":"What is the best practice for deleting items from the apollo store when a mutation deletes them on the server? I could not find anything related to this in the docs. Do I just have to return ids of deleted items as a result of mutation and then use reducer/updatequeris to manually delete items from the store? Or there is some way to let apollo client handle it automatically? Any help is appreciated."},"comment":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/comments/260981838","html_url":"https://github.com/apollostack/apollo-client/issues/899#issuecomment-260981838","issue_url":"https://api.github.com/repos/apollostack/apollo-client/issues/899","id":260981838,"user":{"login":"yurigenin","id":11202960,"avatar_url":"https://avatars.githubusercontent.com/u/11202960?v=3","gravatar_id":"","url":"https://api.github.com/users/yurigenin","html_url":"https://github.com/yurigenin","followers_url":"https://api.github.com/users/yurigenin/followers","following_url":"https://api.github.com/users/yurigenin/following{/other_user}","gists_url":"https://api.github.com/users/yurigenin/gists{/gist_id}","starred_url":"https://api.github.com/users/yurigenin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurigenin/subscriptions","organizations_url":"https://api.github.com/users/yurigenin/orgs","repos_url":"https://api.github.com/users/yurigenin/repos","events_url":"https://api.github.com/users/yurigenin/events{/privacy}","received_events_url":"https://api.github.com/users/yurigenin/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T15:51:19Z","updated_at":"2016-11-16T15:51:19Z","body":"@helfer @stubailo How do I actually purge the objects from the store? If I use reducers/updateQueries it only removes objects from the lists that contain them. But objects themselves stay in the store and become pretty much orphaned. "}}
{"actor":{"display_login":"yurigenin"}}