-
Notifications
You must be signed in to change notification settings - Fork 3
/
.graphqlrc.yml
53 lines (47 loc) · 1.38 KB
/
.graphqlrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
variables:
- &HEADER
- '/* This file is generated, do not edit! */'
- '/* eslint-disable */'
- '/* cspell:disable */'
- &SCALARS
date: 'string'
uuid: 'string'
timestamptz: 'string'
schema:
- ${APP_GRAPHQL_SCHEMA_URL}:
headers:
x-hasura-admin-secret: ${APP_HASURA_ADMIN_SECRET}
documents: './libs/data-layer/operations/**/*.ts'
extensions:
codegen:
emitLegacyCommonJSImports: false
overwrite: true
generates:
./libs/domain/ApiSchema.ts:
plugins:
- add:
content: *HEADER
- typescript
config:
scalars: *SCALARS
namingConvention:
default: 'change-case-all#pascalCase'
typeNames: './configs/graphql-codegen/namingConvetion.js'
enumValues: 'change-case-all#pascalCase'
./libs/data-layer/ApiOperations.ts:
preset: 'import-types'
plugins:
- add:
content: *HEADER
- typescript-operations
presetConfig:
typesPath: '@camp/domain'
importTypesNamespace: 'SchemaTypes'
config:
scalars: *SCALARS
useTypeImports: true
withHooks: false
namingConvention:
default: 'change-case-all#pascalCase'
typeNames: './configs/graphql-codegen/namingConvetion.js'
enumValues: 'change-case-all#pascalCase'