0.4.3 • Published 1 year ago
@kitql/template v0.4.3
KitQL - graphql-codegen
KitQL, A set of tools, helping you building efficient apps in a fast way.
⚡How to - graphql-codegen
pnpm add -D @kitql/graphql-codegen
Typical CodeGen file (.graphqlrc.yaml
)
# ...
codegen:
generates:
./graphql/$kitql/graphqlTypes.ts:
plugins:
- typescript
- typescript-resolvers
- typescript-operations
- typed-document-node
./graphql/$kitql/graphqlStores.ts:
plugins:
- '@kitql/graphql-codegen'
config:
importBaseTypesFrom: $graphql/$kitql/graphqlTypes # if you don't add this, you have to generate all types in the same file.
# ...