You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `dev-test-apollo-tooling` package is an example of migrating from Apollo tooling to GraphQL Codegen. It attempts to generate output as close as possible to Apollo tooling’s output. Note: **this package is a work in progress** and currently requires a patch to `near-operation-file`. We will fix this package soon.
1
+
The `dev-test-apollo-tooling` package is an example of migrating from Apollo tooling to GraphQL
2
+
Codegen. It attempts to generate output as close as possible to Apollo tooling’s output. Note:
3
+
**this package is a work in progress** and currently requires a patch to `near-operation-file`. We
4
+
will fix this package soon.
2
5
3
6
How to run this package:
4
7
5
-
1. Make sure you have the correct Yarn version installed (check the root package.json, `packageManager` entry). Otherwise, you might run into unexplained bugs.
8
+
1. Make sure you have the correct Yarn version installed (check the root package.json,
9
+
`packageManager` entry). Otherwise, you might run into unexplained bugs.
6
10
2. In the monorepo root, run:
7
11
8
12
yarn clean && yarn install && yarn build
9
13
10
-
3. Patch `near-operation-file` manually (the automatic patch doesn’t always work). In the monorepo root, run:
14
+
3. Patch `near-operation-file` manually (the automatic patch doesn’t always work). In the monorepo
15
+
root, run:
11
16
12
17
yarn postinstall
13
18
14
19
4. Go to the `dev-test-apollo-tooling` directory and run:
15
20
16
-
cd dev-test-apollo-tooling
17
-
yarn install
18
-
yarn start
21
+
cd dev-test-apollo-tooling yarn install yarn start
19
22
20
23
This will generate type files in `dev-test-apollo-tooling/src/__generated__/*`.
0 commit comments