@nmxjs/app 1.0.36 → 1.0.37
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/dist/getGraphQlModule.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getGraphQlModule = void 0;
|
|
4
|
-
const graphql_type_json_1 = require("graphql-type-json");
|
|
5
4
|
const utils_1 = require("@nmxjs/utils");
|
|
6
5
|
const types_1 = require("@nmxjs/types");
|
|
7
6
|
const { ApolloDriver } = require('@nestjs/apollo');
|
|
@@ -12,7 +11,7 @@ const getGraphQlModule = (options) => {
|
|
|
12
11
|
const { resolvers, onSubscriptionConnect, onSubscriptionDisconnect } = (options === null || options === void 0 ? void 0 : options.useFactory)
|
|
13
12
|
? await options.useFactory(...params)
|
|
14
13
|
: {};
|
|
15
|
-
return Object.assign(Object.assign({ autoSchemaFile: true, installSubscriptionHandlers: true, playground: (0, utils_1.getEnvironment)() !== types_1.EnvironmentEnum.PRODUCTION, resolvers: Object.assign({
|
|
14
|
+
return Object.assign(Object.assign({ autoSchemaFile: true, installSubscriptionHandlers: true, playground: (0, utils_1.getEnvironment)() !== types_1.EnvironmentEnum.PRODUCTION, resolvers: Object.assign({}, resolvers), formatError: (error) => {
|
|
16
15
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
17
16
|
return (Object.assign(Object.assign(Object.assign({}, (((_b = (_a = error.extensions.exception) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.code)
|
|
18
17
|
? { code: error.extensions.exception.error.code }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGraphQlModule.js","sourceRoot":"","sources":["../src/getGraphQlModule.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getGraphQlModule.js","sourceRoot":"","sources":["../src/getGraphQlModule.ts"],"names":[],"m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