@things-factory/shell 6.2.65 → 6.2.77

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/shell",
3
- "version": "6.2.65",
3
+ "version": "6.2.77",
4
4
  "description": "Core module for framework",
5
5
  "bin": {
6
6
  "things-factory": "bin/things-factory",
@@ -77,7 +77,7 @@
77
77
  "graphql": "^16.5.0",
78
78
  "graphql-mqtt-subscriptions": "^1.2.0",
79
79
  "graphql-redis-subscriptions": "^2.5.0",
80
- "graphql-scalars": "^1.22.2",
80
+ "graphql-scalars": "^1.22.4",
81
81
  "graphql-subscriptions": "^2.0.0",
82
82
  "graphql-tag": "^2.12.6",
83
83
  "graphql-upload": "^15.0.2",
@@ -133,5 +133,5 @@
133
133
  "pg": "^8.7.3",
134
134
  "sqlite3": "^5.0.8"
135
135
  },
136
- "gitHead": "320f62ab586b0c7058e7879f3e6592c960ae97bc"
136
+ "gitHead": "91090127331d8e4cdbbfeb2f82c8dfe8dc65bfee"
137
137
  }
package/server/schema.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { GraphQLSchema } from 'graphql'
2
2
  import { GraphQLUpload } from 'graphql-upload/GraphQLUpload.js'
3
3
  import { buildSchema } from 'type-graphql'
4
+ import { typeDefs as scalarTypeDefs, resolvers as scalarResolvers } from 'graphql-scalars'
4
5
 
5
6
  import { mergeSchemas } from '@graphql-tools/schema'
6
7
  import { loader, orderedModuleNames } from '@things-factory/env'
@@ -68,6 +69,7 @@ export async function schema() {
68
69
  }
69
70
 
70
71
  typeDefs = [
72
+ ...scalarTypeDefs,
71
73
  `
72
74
  scalar Upload
73
75
  `,
@@ -137,6 +139,7 @@ export async function schema() {
137
139
  Query: deepMerge(Query, queryResolvers),
138
140
  Mutation: deepMerge(Mutation, mutationResolvers),
139
141
  Subscription: deepMerge(Subscription, subscriptionResolvers),
142
+ ...scalarResolvers,
140
143
  ...resolvers
141
144
  }
142
145