@steedos/service-api 2.4.6 → 2.4.8-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.js +7 -1
- package/package.json +6 -5
package/index.js
CHANGED
|
@@ -12,6 +12,7 @@ const {
|
|
|
12
12
|
} = require('graphql-iso-date');
|
|
13
13
|
const SteedosRouter = require('@steedos/router');
|
|
14
14
|
const _ = require('lodash');
|
|
15
|
+
const ServiceObjectGraphql = require('@steedos/service-object-graphql')
|
|
15
16
|
|
|
16
17
|
const mixinOptions = {
|
|
17
18
|
|
|
@@ -91,7 +92,8 @@ module.exports = {
|
|
|
91
92
|
name: "api",
|
|
92
93
|
mixins: [ApiGateway,
|
|
93
94
|
// GraphQL Apollo Server
|
|
94
|
-
ApolloService(mixinOptions)
|
|
95
|
+
ApolloService(mixinOptions),
|
|
96
|
+
ServiceObjectGraphql
|
|
95
97
|
],
|
|
96
98
|
|
|
97
99
|
// More info about settings: https://moleculer.services/docs/0.14/moleculer-web.html
|
|
@@ -404,6 +406,10 @@ module.exports = {
|
|
|
404
406
|
schemaDirectives = _.cloneDeep(mixinOptions.schemaDirectives);
|
|
405
407
|
}
|
|
406
408
|
|
|
409
|
+
if (this.globalTypeDefs) {
|
|
410
|
+
typeDefs = typeDefs.concat(this.globalTypeDefs);
|
|
411
|
+
}
|
|
412
|
+
|
|
407
413
|
let queries = [];
|
|
408
414
|
let mutations = [];
|
|
409
415
|
let subscriptions = [];
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-api",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.8-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@steedos/auth": "2.4.
|
|
8
|
-
"@steedos/router": "2.4.
|
|
9
|
-
"@steedos/service-
|
|
7
|
+
"@steedos/auth": "2.4.8-beta.1",
|
|
8
|
+
"@steedos/router": "2.4.8-beta.1",
|
|
9
|
+
"@steedos/service-object-graphql": "2.4.8-beta.1",
|
|
10
|
+
"@steedos/service-ui": "2.4.8-beta.1",
|
|
10
11
|
"graphql": "^15.8.0",
|
|
11
12
|
"graphql-iso-date": "^3.6.1",
|
|
12
13
|
"graphql-type-json": "^0.3.2",
|
|
@@ -18,5 +19,5 @@
|
|
|
18
19
|
"publishConfig": {
|
|
19
20
|
"access": "public"
|
|
20
21
|
},
|
|
21
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "f35130770cfb86468309f8f9a8ce21a3bbb5b2f6"
|
|
22
23
|
}
|