@rxdi/graphql 0.7.187 → 0.7.189

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.
@@ -154,8 +154,8 @@ let ApolloService = class ApolloService {
154
154
  this.config.graphqlOptions.context = Object.assign(Object.assign({}, this.config.graphqlOptions.context), context);
155
155
  const graphqlResponse = yield (0, graphql_1.graphql)({
156
156
  schema: this.config.graphqlOptions.schema,
157
- source: request.method === 'post' ? request.payload['query'] : request.query,
158
- variableValues: request.payload['variables'],
157
+ source: request.method === 'post' ? request.payload['query'] : request.query.query,
158
+ variableValues: request.method === 'post' ? request.payload['variables'] : JSON.parse(request.query.variables),
159
159
  contextValue: this.config.graphqlOptions.context,
160
160
  });
161
161
  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.189",
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.188",
42
+ "@rxdi/hapi": "^0.7.188",
43
43
  "@types/graphql": "^14.5.0",
44
44
  "@types/jest": "^24.0.22",
45
45
  "@types/node": "^12.0.10",