In my package.json
file I've got script entry that runs graphql-codegen
but it complains that the --config
argument is invalid:
$> yarn gen
yarn run v1.21.1
$ graphql-codegen --config codegen.yml
Error: Unknown argument: config
...
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Since I believe the default file name is codegen.yml
anyway, I try to run it with out that argument and nothing gets generated:
$> yarn graphql-codegen
yarn run v1.21.1
$ /home/aaron/projects/my_app/node_modules/.bin/graphql-codegen
Done in 0.17s.
Any ideas?
@graphql-codegen/cli
,@graphql-codegen/introspection
,@graphql-codegen/typescript
,@graphql-codegen/typescript-operations
,@graphql-codegen/typescript-react-apollo
. – Iciness