-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.graphqlrc.yml
More file actions
37 lines (33 loc) · 851 Bytes
/
.graphqlrc.yml
File metadata and controls
37 lines (33 loc) · 851 Bytes
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
schema:
- https://api.spacex.land/graphql
- src/client.schema.graphql
documents:
- src/**/*.fragment.graphql
- src/**/*.mutation.graphql
- src/**/*.query.graphql
- src/**/*.subscription.graphql
extensions:
codegen:
config:
constEnums: true
declarationKind: interface
dedupeOperationSuffix: true
immutableTypes: true
namingConvention: keep
noSchemaStitching: true
operationResultSuffix: Data
optionalResolveType: true
useIndexSignature: true
generates:
src/schema.ts:
- typescript
src/:
preset: near-operation-file
presetConfig:
baseTypesPath: schema.ts
extension: .ts
typesSuffix: ''
schema: client.schema.graphql
plugins:
- typescript-operations
- typed-document-node