@graphcommerce/docs 9.0.4-canary.1 → 9.0.4-canary.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.4-canary.10
4
+
5
+ ## 9.0.4-canary.9
6
+
7
+ ## 9.0.4-canary.8
8
+
9
+ ## 9.0.4-canary.7
10
+
11
+ ## 9.0.4-canary.6
12
+
13
+ ## 9.0.4-canary.5
14
+
15
+ ## 9.0.4-canary.4
16
+
17
+ ## 9.0.4-canary.3
18
+
19
+ ## 9.0.4-canary.2
20
+
3
21
  ## 9.0.4-canary.1
4
22
 
5
23
  ## 9.0.4-canary.0
package/feature-list.md CHANGED
@@ -203,7 +203,7 @@ Features taken from the Magento Commerce 2 Feature List
203
203
  - [x] Zoom-in on product images.
204
204
  - [ ] Display product videos from YouTube or Vimeo. — [Todo]
205
205
  - [x] Include swatches to show colors, fabrics, and more.
206
- - [ ] Show multiple products in a grouped view. — [Todo]
206
+ - [x] Show multiple products in a grouped view. — [Todo]
207
207
  - [x] Indicate stock availability.
208
208
  - [x] Set related products, up-sell, and cross-sell recommendations to increase
209
209
  average order value.
@@ -276,7 +276,7 @@ Features taken from the Magento Commerce 2 Feature List
276
276
  emails.
277
277
  - [x] Build customer relationships by creating newsletters and managing their
278
278
  distribution.
279
- - [ ] Connect with customers with a Contact Us form. — [Todo]
279
+ - [x] Connect with customers with a Contact Us form.
280
280
 
281
281
  ### Customer loyalty
282
282
 
@@ -305,10 +305,11 @@ Features taken from the Magento Commerce 2 Feature List
305
305
  - [x] Choose default billing and shipping addresses.
306
306
  - [x] Store unlimited addresses in the address book.
307
307
  - [x] See order status and history.
308
- - [ ] Re-order from the customer account. — [Todo]
308
+ - [x] Re-order from the customer account.
309
309
  - [x] View recently ordered items.
310
- - [ ] Track available store credits, gift card totals, and reward points. —
311
- [Commerce]
310
+ - [x] Track available store credits [Commerce]
311
+ - [ ] Track gift card totals — [Commerce]
312
+ - [ ] Track reward points — [Commerce]
312
313
  - [x] Manage newsletter subscriptions.
313
314
  - [x] View submitted product reviews.
314
315
  - [ ] Access downloadable/digital products. — [Todo]
@@ -251,6 +251,11 @@ The Google Tagmanager ID to be used on the site.
251
251
 
252
252
  This value is required even if you are configuring different values for each locale.
253
253
 
254
+ #### graphqlMeshEditMode: boolean = `false`
255
+
256
+ The GraphQL Mesh will be loaded once and any modifications to resolvers will be ignored. When developing
257
+ new resolvers this should be set to true.
258
+
254
259
  #### hygraphManagementApi: string
255
260
 
256
261
  Hygraph Management API. **Only used for migrations.**
package/framework/mesh.md CHANGED
@@ -27,7 +27,8 @@ To make modifications to the Mesh configuration, you can:
27
27
  ### Modify the meshrc.yaml:
28
28
 
29
29
  You can always modify the base configuration of the Mesh by modifying the
30
- `meshrc.yaml` file.
30
+ `meshrc.yaml` file. After making always run `yarn codegen` (this can be in a
31
+ separate terminal and nextjs will reload it).
31
32
 
32
33
  ### Write a plugin:
33
34
 
@@ -61,6 +62,33 @@ export const meshConfig: FunctionPlugin<typeof meshConfigBase> = (
61
62
  },
62
63
  },
63
64
  ],
65
+ additionalResolvers: [
66
+ ...(baseConfig.additionalResolvers ?? []),
67
+ 'lib/resolvers/my-feature.ts',
68
+ ],
64
69
  })
65
70
  }
66
71
  ```
72
+
73
+ ### Creating additional schema's
74
+
75
+ During development it might come in handy to write schema extensions even before
76
+ any backend work has been done. `AnyFile.graphqls` in the graphql directory will
77
+ automatically be picked up and merged with the rest of the schema.
78
+
79
+ ### Creating additional resolvers
80
+
81
+ In the plugin add additionalResolvers and point to your ts file where the
82
+ resolver is.
83
+
84
+ ```tsx
85
+ // This MUST be a type import, else there will be a circular dependency.
86
+ import type { Resolvers } from '@graphcommerce/graphql-mesh'
87
+
88
+ const resolvers: Resolvers = {}
89
+ ```
90
+
91
+ To make sure changes are picked up during development set the config value
92
+ `graphqlMeshEditMode: true` in your graphcommerce.config.js or set the env
93
+ variable `GC_GRAPHQL_MESH_EDIT_MODE=1`. This _will_ make the frontend
94
+ considerably slower.
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "@graphcommerce/docs",
3
3
  "homepage": "https://www.graphcommerce.org/docs",
4
4
  "repository": "github:graphcommerce-org/graphcommerce/docs",
5
- "version": "9.0.4-canary.1",
5
+ "version": "9.0.4-canary.10",
6
6
  "sideEffects": true,
7
7
  "peerDependencies": {
8
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.1"
8
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.10"
9
9
  },
10
10
  "prettier": "@graphcommerce/prettier-config-pwa"
11
11
  }