@rxdi/graphql 0.7.189 → 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.
|
@@ -155,7 +155,11 @@ let ApolloService = class ApolloService {
|
|
|
155
155
|
const graphqlResponse = yield (0, graphql_1.graphql)({
|
|
156
156
|
schema: this.config.graphqlOptions.schema,
|
|
157
157
|
source: request.method === 'post' ? request.payload['query'] : request.query.query,
|
|
158
|
-
variableValues: request.method === 'post'
|
|
158
|
+
variableValues: request.method === 'post'
|
|
159
|
+
? request.payload['variables']
|
|
160
|
+
: request.query.variables
|
|
161
|
+
? JSON.parse(request.query.variables)
|
|
162
|
+
: undefined,
|
|
159
163
|
contextValue: this.config.graphqlOptions.context,
|
|
160
164
|
});
|
|
161
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.
|
|
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.
|
|
42
|
-
"@rxdi/hapi": "^0.7.
|
|
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",
|