@rxdi/graphql 0.7.188 → 0.7.190

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,11 +152,14 @@ 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;
156
155
  const graphqlResponse = yield (0, graphql_1.graphql)({
157
156
  schema: this.config.graphqlOptions.schema,
158
- source: request.method === 'post' ? payload['query'] : request.query,
159
- variableValues: payload ? payload['variables'] : undefined,
157
+ source: request.method === 'post' ? request.payload['query'] : request.query.query,
158
+ variableValues: request.method === 'post'
159
+ ? request.payload['variables']
160
+ : request.query.variables
161
+ ? JSON.parse(request.query.variables)
162
+ : undefined,
160
163
  contextValue: this.config.graphqlOptions.context,
161
164
  });
162
165
  const response = h.response(graphqlResponse);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/graphql",
3
- "version": "0.7.188",
3
+ "version": "0.7.190",
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.187",
42
- "@rxdi/hapi": "^0.7.187",
41
+ "@rxdi/core": "^0.7.189",
42
+ "@rxdi/hapi": "^0.7.189",
43
43
  "@types/graphql": "^14.5.0",
44
44
  "@types/jest": "^24.0.22",
45
45
  "@types/node": "^12.0.10",