@rxdi/graphql 0.7.188 → 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.
|
@@ -152,11 +152,10 @@ 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:
|
|
157
|
+
source: request.method === 'post' ? request.payload['query'] : request.query.query,
|
|
158
|
+
variableValues: request.method === 'post' ? request.payload['variables'] : JSON.parse(request.query.variables),
|
|
160
159
|
contextValue: this.config.graphqlOptions.context,
|
|
161
160
|
});
|
|
162
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.
|
|
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.
|
|
42
|
-
"@rxdi/hapi": "^0.7.
|
|
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",
|