This repository was archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
37 lines (37 loc) · 1.45 KB
/
codegen.yml
File metadata and controls
37 lines (37 loc) · 1.45 KB
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
overwrite: true
schema: "./servers/backend-server/generated-schema.graphql"
generates:
typings/graphql.d.ts:
plugins:
- typescript-graphql-files-modules
packages-modules/counter/browser/src/generated-models.ts:
schema: "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
documents: "packages-modules/counter/browser/src/**/*.gql"
config:
noNamespaces: true
contextType: ./interfaces/context#MyContext
withMutationFn: false
withHOC: false
withComponent: false
plugins:
- add: |
/* tslint:disable */
- typescript
- typescript-operations
- typescript-resolvers
- typescript-react-apollo
packages-modules/counter/browser/src/apollo-server-n-client/generated-model.tsx:
schema: "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
documents: "packages-modules/counter/browser/src/**/*.gql"
config:
withMutationFn: true
withHOC: true
withComponent: true
plugins:
- add: |
/* tslint:disable */
import { AddCounterStateMutation, AddCounterStateMutationVariables, AddCounterMutation,
AddCounterMutationVariables, CounterStateQuery, CounterStateQueryVariables,CounterQueryQueryVariables,
CounterQueryQuery, OnCounterUpdatedSubscription, OnCounterUpdatedSubscriptionVariables,
} from '../common/generated-models'
- typescript-react-apollo