@rxdi/graphql 0.7.187 → 0.7.188

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.
@@ -152,10 +152,11 @@ let ApolloService = class ApolloService {
152
152
  this.isInitQuery = false;
153
153
  }
154
154
  this.config.graphqlOptions.context = Object.assign(Object.assign({}, this.config.graphqlOptions.context), context);
155
+ const payload = request.payload;
155
156
  const graphqlResponse = yield (0, graphql_1.graphql)({
156
157
  schema: this.config.graphqlOptions.schema,
157
- source: request.method === 'post' ? request.payload['query'] : request.query,
158
- variableValues: request.payload['variables'],
158
+ source: request.method === 'post' ? payload['query'] : request.query,
159
+ variableValues: payload ? payload['variables'] : undefined,
159
160
  contextValue: this.config.graphqlOptions.context,
160
161
  });
161
162
  const response = h.response(graphqlResponse);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/graphql",
3
- "version": "0.7.187",
3
+ "version": "0.7.188",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rxdi/graphql"
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "graphql": "^14.5.8",
41
- "@rxdi/core": "^0.7.186",
42
- "@rxdi/hapi": "^0.7.186",
41
+ "@rxdi/core": "^0.7.187",
42
+ "@rxdi/hapi": "^0.7.187",
43
43
  "@types/graphql": "^14.5.0",
44
44
  "@types/jest": "^24.0.22",
45
45
  "@types/node": "^12.0.10",