-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy path.graphqlrc.yml
48 lines (48 loc) · 1.34 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
schema: ./server/src/schema/**/*.graphql
documents: ./client/src/graphql/**/*.graphql
extensions:
codegen:
generates:
./client/src/generated-types.tsx:
config:
withComponent: false
withHOC: false
withHooks: true
skipDocumentsValidation: true
plugins:
- add: '/* tslint:disable */'
- typescript
- typescript-operations
- typescript-react-apollo
./server/src/generated-types.ts:
config:
contextType: '@graphback/core#GraphbackContext'
mappers:
Comment: './generated-db-types#comment'
Note: './generated-db-types#note'
useIndexSignature: true
skipDocumentsValidation: true
plugins:
- add: '/* tslint:disable */'
- typescript
- typescript-resolvers
# Graphback configuration
graphback:
## Input schema
model: ./model
## Global configuration for CRUD generator
crud:
create: true
update: true
find: true
findOne: true
delete: true
subCreate: true
subUpdate: true
subDelete: true
## Codegen plugins
plugins:
graphback-schema:
outputPath: ./server/src/schema/schema.graphql
graphback-client:
outputFile: ./client/src/graphql/graphback.graphql