@infrab4a/connect 4.10.0-beta.0 → 4.10.0-beta.1
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.
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -4220,7 +4220,7 @@ const withHasuraGraphQL = (MixinBase) => {
|
|
|
4220
4220
|
const response = await axios__default["default"](request);
|
|
4221
4221
|
if (!lodash.isNil(response.data.errors)) {
|
|
4222
4222
|
this.logger.error({ req: request, res: response.data.errors });
|
|
4223
|
-
throw new Error(response.data.errors);
|
|
4223
|
+
throw new Error(JSON.stringify(response.data.errors));
|
|
4224
4224
|
}
|
|
4225
4225
|
this.logger.log({ req: request, res: response.data });
|
|
4226
4226
|
return response.data.data;
|
package/index.esm.js
CHANGED
|
@@ -4214,7 +4214,7 @@ const withHasuraGraphQL = (MixinBase) => {
|
|
|
4214
4214
|
const response = await axios(request);
|
|
4215
4215
|
if (!isNil(response.data.errors)) {
|
|
4216
4216
|
this.logger.error({ req: request, res: response.data.errors });
|
|
4217
|
-
throw new Error(response.data.errors);
|
|
4217
|
+
throw new Error(JSON.stringify(response.data.errors));
|
|
4218
4218
|
}
|
|
4219
4219
|
this.logger.log({ req: request, res: response.data });
|
|
4220
4220
|
return response.data.data;
|