@steedos/service-api 2.4.7 → 2.4.8-beta.2

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.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. 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.7",
3
+ "version": "2.4.8-beta.2",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "@steedos/auth": "2.4.7",
8
- "@steedos/router": "2.4.7",
9
- "@steedos/service-ui": "2.4.7",
7
+ "@steedos/auth": "2.4.8-beta.2",
8
+ "@steedos/router": "2.4.8-beta.2",
9
+ "@steedos/service-object-graphql": "2.4.8-beta.2",
10
+ "@steedos/service-ui": "2.4.8-beta.2",
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": "a58a5e537a2ff15dda57bf1c31d00f8a9ae19879"
22
+ "gitHead": "75409cde3a71561adfff93fbb36a7dc1ce5252d5"
22
23
  }