Skip to content

Commit 309406e

Browse files
authored
Merge pull request #61 from n1ru4l/fix-update-graphql-codegen
fix(deps): update graphql codegen
2 parents 0877353 + e974301 commit 309406e

14 files changed

+555
-292
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Benefits:
99
- Fragment Arguments
1010
- Data Masking
1111

12+
Read the introduction and setup guide over here: [Optimizing your Apollo Client Operations with GraphQL Code Generator and the Relay Compiler](https://medium.com/the-guild/optimizing-queries-with-the-graphql-code-generator-b8c37d692857)
13+
14+
Checkout the example app here: [`todo-app-example`](packages/todo-app-example)
15+
1216
# Packages [![CircleCI](https://circleci.com/gh/n1ru4l/graphql-codegen-relay-plugins/tree/master.svg?style=svg)](https://circleci.com/gh/n1ru4l/graphql-codegen-relay-plugins/tree/master)
1317

1418
## [`@n1ru4l/graphql-codegen-relay-optimizer-plugin`](packages/graphql-codegen-relay-optimizer-plugin)

packages/graphql-codegen-relay-optimizer-plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"graphql": "14.x.x"
2929
},
3030
"dependencies": {
31-
"@graphql-codegen/plugin-helpers": "1.4.0",
31+
"@graphql-codegen/plugin-helpers": "1.6.1",
3232
"relay-compiler": "5.0.0"
3333
},
3434
"devDependencies": {
35-
"@graphql-codegen/testing": "1.4.0",
35+
"@graphql-codegen/testing": "1.6.1",
3636
"@types/graphql": "14.2.3",
3737
"@types/jest": "24.0.18",
3838
"@types/relay-compiler": "5.0.0",

packages/todo-app-example/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Demonstration of using `graphql-codegen-relay-plugin` with TodoMVC.
44
Server code is based on [Relay TodoMVC](https://github.com/relayjs/relay-examples/tree/master/todo)
5-
Frontend code is also based on [Relay TodoMVC](https://github.com/relayjs/relay-examples/tree/master/todo) but ported over to ReactApollo (ReactApolloHooks).
5+
Frontend code is also based on [Relay TodoMVC](https://github.com/relayjs/relay-examples/tree/master/todo) but ported over to ReactApollo (`@apollo/react-hooks`).
66

77
## Usage instructions
88

packages/todo-app-example/codegen.yml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ generates:
77
withHOC: false
88
withComponent: false
99
withHooks: true
10-
withFragmentContainer: false
1110
plugins:
1211
- "typescript"
1312
- "@n1ru4l/graphql-codegen-relay-optimizer-plugin"

packages/todo-app-example/package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6+
"@apollo/react-common": "3.0.1",
7+
"@apollo/react-hooks": "3.0.1",
68
"apollo-cache-inmemory": "1.6.3",
79
"apollo-client": "2.6.4",
810
"apollo-link-http": "1.5.15",
@@ -14,8 +16,7 @@
1416
"graphql-relay": "0.6.0",
1517
"graphql-tag": "2.10.1",
1618
"react": "16.9.0",
17-
"react-apollo": "2.5.8",
18-
"react-apollo-hooks": "0.4.5",
19+
"react-apollo": "3.0.1",
1920
"react-dom": "16.9.0",
2021
"react-scripts": "3.0.1",
2122
"todomvc-app-css": "2.2.0",
@@ -47,12 +48,12 @@
4748
"devDependencies": {
4849
"@babel/node": "7.5.5",
4950
"@babel/preset-flow": "7.0.0",
50-
"@graphql-codegen/cli": "1.4.0",
51-
"@graphql-codegen/plugin-helpers": "1.4.0",
52-
"@graphql-codegen/typescript": "1.4.0",
53-
"@graphql-codegen/typescript-operations": "1.4.0",
54-
"@graphql-codegen/typescript-react-apollo": "1.4.0",
55-
"@n1ru4l/graphql-codegen-relay-optimizer-plugin": "1.0.0",
51+
"@graphql-codegen/cli": "1.6.1",
52+
"@graphql-codegen/plugin-helpers": "1.6.1",
53+
"@graphql-codegen/typescript": "1.6.1",
54+
"@graphql-codegen/typescript-operations": "1.6.1",
55+
"@graphql-codegen/typescript-react-apollo": "1.6.1",
56+
"@n1ru4l/graphql-codegen-relay-optimizer-plugin": "2.0.1",
5657
"@types/classnames": "2.2.9",
5758
"@types/jest": "24.0.18",
5859
"@types/node": "12.7.2",

0 commit comments

Comments
 (0)