-
Notifications
You must be signed in to change notification settings - Fork 1
/
codegen.yml
42 lines (40 loc) · 1.28 KB
/
codegen.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
# Run codegen using: npm run generate
# Make sure schema endpoint is accessible!
config:
scalars:
Date: Date
BigInt: string
Float: string
preResolveTypes: true # avoid using Pick
nonOptionalTypename: true
generates:
src/api/queries/__generated__/gql.ts:
schema: "https://query.joystream.org/graphql" # Pioneer
documents: "./src/api/queries/graphql/*.gql"
plugins:
- typescript
- typescript-operations
- typescript-graphql-request
src/api/queries/__generated__/baseTypes.generated.ts:
schema: "https://query.joystream.org/graphql" # Pioneer
documents: "./src/api/queries/graphql/*.gql"
plugins:
- typescript
src/api/queries/__generated__/:
schema: "https://query.joystream.org/graphql" # Pioneer
documents: "./src/api/queries/graphql/*.gql"
preset: near-operation-file
presetConfig:
baseTypesPath: baseTypes.generated.ts
folder: ../__generated__
extension: .generated.tsx
plugins:
- typescript-operations
- typescript-react-apollo
src/api/queries/__generated__/orion.generated.ts:
schema: "https://orion.gleev.xyz/graphql" # Orion
documents: "./src/api/queries/graphql/orion/*.gql"
plugins:
- typescript
- typescript-operations
- typescript-graphql-request