heftapp / graphql_codegen

MIT License
146 stars 53 forks source link

Add `id` in the build step like with `__typename` #323

Closed RobertBrunhage closed 11 months ago

RobertBrunhage commented 11 months ago

The cache can get into weird states when not fetching both id and __typename, which can result in CacheMissException etc.

Is it possible to add id as part of the codegen step, similar to addTypename?

github-actions[bot] commented 11 months ago

👋 @RobertBrunhage Thank you for raising an issue. I will investigate the issue and get back to you as soon as possible. Please make sure you have provided enough context.

This library is created and maintained by me, @budde377. Please consider supporting my work and ensure our survival by donating here.

RobertBrunhage commented 11 months ago

Closing this as I just saw https://github.com/heftapp/graphql_codegen/issues/124