graphql-codegen-hasura icon indicating copy to clipboard operation
graphql-codegen-hasura copied to clipboard

Typescript error with ts generated file for cacheWrite methods

Open smblee opened this issue 4 years ago • 1 comments

https://github.com/ablestack/graphql-codegen-hasura/blob/db5de3d08401f04912291b9c2df8a7920e42c72e/packages/graphql-codegen-hasura-shared/src/tshelperInjectors.ts#L135

image

Running @apollo/client version 3.1.4.

Looks like the types were updated here: https://github.com/apollographql/apollo-client/commit/7202b78574f9fddd2a513a7f5ebd9212e989f825#diff-a425d86f9a8376d3071667e3198c940a

The solution here would be to not return the result of apolloCache.writeQuery... ?

smblee avatar Sep 02 '20 07:09 smblee

Hi @smblee

Thanks for reporting. I'll take a look and make the updates when I get a chance. It might be a little while, before I can get to it. But, also, feel free to make the changes and submit a pull request.

Thanks!

jamshally avatar Sep 05 '20 20:09 jamshally