Browse Source

fix(server): Update graphql-js version, fix duplicate mutation def

The duplicate mutation was only picked up on the newer version of graphql-js, and was causing the server to crash on bootstrap.
Michael Bromley 6 years ago
parent
commit
a3e65361bb
3 changed files with 6 additions and 7 deletions
  1. 2 2
      server/package.json
  2. 0 2
      server/src/api/schema/shop-api/shop.api.graphql
  3. 4 3
      server/yarn.lock

+ 2 - 2
server/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/core",
-  "version": "0.1.0-alpha.8",
+  "version": "0.1.0-alpha.9",
   "description": "A modern, headless ecommerce framework",
   "repository": {
     "type": "git",
@@ -52,7 +52,7 @@
     "dateformat": "^3.0.3",
     "express": "^4.16.4",
     "fs-extra": "^7.0.1",
-    "graphql": "^14.0.0",
+    "graphql": "^14.1.1",
     "graphql-iso-date": "^3.6.1",
     "graphql-tag": "^2.10.0",
     "graphql-tools": "^4.0.3",

+ 0 - 2
server/src/api/schema/shop-api/shop.api.graphql

@@ -23,8 +23,6 @@ type Mutation {
     setOrderShippingMethod(shippingMethodId: ID!): Order
     addPaymentToOrder(input: PaymentInput!): Order
     setCustomerForOrder(input: CreateCustomerInput!): Order
-    "Create a new Address and associate it with the Customer specified by customerId"
-    createCustomerAddress(customerId: ID!, input: CreateAddressInput!): Address!
     login(username: String!, password: String!, rememberMe: Boolean): LoginResult!
     logout: Boolean!
     "Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true."

+ 4 - 3
server/yarn.lock

@@ -2905,9 +2905,10 @@ graphql-upload@^8.0.2:
     http-errors "^1.7.1"
     object-path "^0.11.4"
 
-graphql@^14.0.0:
-  version "14.0.2"
-  resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.0.2.tgz#7dded337a4c3fd2d075692323384034b357f5650"
+graphql@^14.1.1:
+  version "14.1.1"
+  resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.1.1.tgz#d5d77df4b19ef41538d7215d1e7a28834619fac0"
+  integrity sha512-C5zDzLqvfPAgTtP8AUPIt9keDabrdRAqSWjj2OPRKrKxI9Fb65I36s1uCs1UUBFnSWTdO7hyHi7z1ZbwKMKF6Q==
   dependencies:
     iterall "^1.2.2"