Skip to content

Commit

Permalink
Fix mutation bug for codegen.
Browse files Browse the repository at this point in the history
  • Loading branch information
stemmlerjs committed Dec 19, 2019
1 parent eb899b9 commit bbee74d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
13 changes: 2 additions & 11 deletions final/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,13 @@
"react-scripts": "3.0.1",
"typescript": "^3.7.3"
},
"watch": {
"codegen": {
"patterns": [
"src"
],
"extensions": "ts,tsx"
}
},
"scripts": {
"start": "concurrently \"react-scripts start\" \"npm-watch\"",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"run:ios-demo": "npx artillery run apollo-internal-demos/ios-workload.yml",
"codegen": "apollo client:codegen --target typescript"
"codegen": "apollo client:codegen --target typescript --watch"
},
"eslintConfig": {
"extends": "react-app"
Expand All @@ -54,7 +46,6 @@
"@types/jest": "^24.0.23",
"apollo": "^2.16.3",
"artillery": "^1.6.0-26",
"concurrently": "^5.0.2",
"npm-watch": "^0.6.0"
}
}
15 changes: 15 additions & 0 deletions final/client/src/containers/__generated__/addOrRemoveFromCart.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion final/client/src/resolvers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const typeDefs = gql`
}
extend type Mutation {
addOrRemoveFromCart(id: ID!): [Launch]
addOrRemoveFromCart(id: ID!): [ID!]!
}
`;

Expand Down

0 comments on commit bbee74d

Please sign in to comment.