This is a graphql-code-generator plugin that generates type policies for
enum detail
types within your schema.
The Apollo InMemory Cache needs to know that for enum detail
types, the code
field is the keyField
, instead
of the typical id
field, which does not exist on enum detail
types.
In order to develop changes for this package, follow these steps:
-
Make your desired changes in the
src
directory -
Adjust the example files under the
integration
directory to use your new feature. -
Run
yarn build
, to create a build with your changes -
Run
yarn graphql-codegen
, and verify the output ingraphql-types.ts
matches your expected output.