Brad Anderson
Brad Anderson
I tested this against the commit on this PR #31, not on your branch (didn't see it until later). I have a branch myself, but it is based on PR...
I'm seeing this error as well, but not for a cache rollback. I'm trying to writeFragment and change an entity that was a sub-entity of a larger query. A 'Game'...
So, first, here's my cache config: ``` const cache = new Hermes({ entityIdForNode: object => object._key || undefined }); ``` Then, `getGame` query: ``` import gql from 'graphql-tag'; export default...
correct: ``` let res = cache.writeFragment({ id: postScore._key, fragment: scoreFragment, data: { scores: newScores } }); ``` `postScore._key` is the round _key from the `postScore` mutation you see not blacklisted...
@nevir your work-around gets past the error, but doesn't update my UI's that are supposedly subscribed to the cache changes (I thought for `getGame`). Although I do have a convoluted...
@jamesreggio @nevir any update on getting the patch from 8/2/18 into master and released? Is this project dead or just in heavy sleep?
FYI, I recently updated versions of dependencies, including this project, and I now see InvalidPayloadError when I didn't before. So, I'm also interested in [#311 (comment)](https://github.com/convoyinc/apollo-cache-hermes/issues/311#issuecomment-410075626)
Solved my issue by knowing `payload` and `previousValue` via console.log so this logging will be helpful.
PR is merged. Is this issue safe to close?
🙏 reopen if the issue persists