File tree Expand file tree Collapse file tree 5 files changed +2551
-141
lines changed Expand file tree Collapse file tree 5 files changed +2551
-141
lines changed Original file line number Diff line number Diff line change 1+ overwrite : true
2+ schema : ' https://graphqlzero.almansi.me/api'
3+ documents : ' src/**/*.gql'
4+ generates :
5+ src/gen/graphql.tsx :
6+ config :
7+ noNamespaces : true
8+ withComponent : false
9+ withHOC : false
10+ withHooks : true
11+ plugins :
12+ - ' typescript'
13+ - ' typescript-operations'
14+ - ' typescript-react-apollo'
Original file line number Diff line number Diff line change 3030 "start" : " react-scripts start" ,
3131 "build" : " react-scripts build" ,
3232 "test" : " react-scripts test" ,
33- "eject" : " react-scripts eject"
33+ "eject" : " react-scripts eject" ,
34+ "gen" : " graphql-codegen"
3435 },
3536 "eslintConfig" : {
3637 "extends" : " react-app"
4849 ]
4950 },
5051 "devDependencies" : {
52+ "@graphql-codegen/cli" : " ^1.17.10" ,
53+ "@graphql-codegen/typescript" : " ^1.17.10" ,
54+ "@graphql-codegen/typescript-operations" : " ^1.17.8" ,
55+ "@graphql-codegen/typescript-react-apollo" : " ^2.0.7" ,
5156 "@types/classnames" : " ^2.2.10" ,
5257 "@types/react-router" : " ^5.1.8" ,
5358 "@types/react-router-dom" : " ^5.1.5"
You can’t perform that action at this time.
0 commit comments