@makerx/graphql-core 1.3.0 → 1.4.0

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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +7 -3
package/README.md CHANGED
@@ -223,6 +223,16 @@ This library includes a `subscriptions` module to provide simple setup using the
223
223
 
224
224
  The testing submodule exports utility functions for easily constructing ApolloClient instances for integration testing on NodeJS. The `errorPolicy` is set to `all` so that returned errors can be checked.
225
225
 
226
+ ### Setup
227
+
228
+ If you use this module, you need to install `@apollo/client`:
229
+
230
+ ```
231
+ npm install --save-dev @apollo/client
232
+ ```
233
+
234
+ ### Usage
235
+
226
236
  - `createTestClient` accepts a url and optional accessToken.
227
237
  - `createTestClientWithClientCredentials` accepts a url and client credentials config and will fetch and attach an access token to each request.
228
238
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "main": "index.js",
3
3
  "types": "index.d.ts",
4
4
  "name": "@makerx/graphql-core",
5
- "version": "1.3.0",
5
+ "version": "1.4.0",
6
6
  "private": false,
7
7
  "description": "A set of core GraphQL utilities that MakerX uses to build GraphQL APIs",
8
8
  "author": "MakerX",
@@ -24,13 +24,17 @@
24
24
  "lodash.pick": "^4.4.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "graphql-shield": "*",
27
+ "@apollo/client": "*",
28
28
  "express": "*",
29
- "graphql": "*",
29
+ "graphql-shield": "*",
30
30
  "graphql-ws": "*",
31
+ "graphql": "*",
31
32
  "ws": "*"
32
33
  },
33
34
  "peerDependenciesMeta": {
35
+ "@apollo/client": {
36
+ "optional": true
37
+ },
34
38
  "graphql-ws": {
35
39
  "optional": true
36
40
  },