mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2026-04-02 20:15:23 +00:00
new graphql pipeline
This commit is contained in:
14
codegen.yaml
Normal file
14
codegen.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
schema: https://api.nicco.io/graphql
|
||||
documents: "src/**/*.graphql"
|
||||
generates:
|
||||
./src/lib/gql/gen.ts:
|
||||
plugins:
|
||||
- "@graphql-codegen/typescript"
|
||||
- "@graphql-codegen/typescript-operations"
|
||||
- "@graphql-codegen/typescript-graphql-request"
|
||||
config:
|
||||
maybeValue: "T"
|
||||
typesPrefix: GQL
|
||||
immutableTypes: true
|
||||
useTypeImports: true
|
||||
avoidOptionals: true
|
||||
Reference in New Issue
Block a user