diff --git a/final/client/package.json b/final/client/package.json index e3933e618..7f997412b 100644 --- a/final/client/package.json +++ b/final/client/package.json @@ -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" @@ -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" } } diff --git a/final/client/src/containers/__generated__/addOrRemoveFromCart.ts b/final/client/src/containers/__generated__/addOrRemoveFromCart.ts new file mode 100644 index 000000000..aa9cb4a0f --- /dev/null +++ b/final/client/src/containers/__generated__/addOrRemoveFromCart.ts @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +// This file was automatically generated and should not be edited. + +// ==================================================== +// GraphQL mutation operation: addOrRemoveFromCart +// ==================================================== + +export interface addOrRemoveFromCart { + addOrRemoveFromCart: string[]; +} + +export interface addOrRemoveFromCartVariables { + launchId: string; +} diff --git a/final/client/src/resolvers.tsx b/final/client/src/resolvers.tsx index 9050de293..ab2daeeb0 100644 --- a/final/client/src/resolvers.tsx +++ b/final/client/src/resolvers.tsx @@ -16,7 +16,7 @@ export const typeDefs = gql` } extend type Mutation { - addOrRemoveFromCart(id: ID!): [Launch] + addOrRemoveFromCart(id: ID!): [ID!]! } `;