@platformatic/sql-graphql 1.16.0 → 1.17.0

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/lib/utils.js +5 -1
  2. package/package.json +8 -8
package/lib/utils.js CHANGED
@@ -50,9 +50,13 @@ function sqlTypeToGraphQL (sqlType) {
50
50
  case 'date':
51
51
  return scalars.GraphQLDate
52
52
  case 'time':
53
- return graphql.GraphQLString
53
+ return scalars.GraphQLTime
54
+ case 'timetz':
55
+ return scalars.GraphQLTime
54
56
  case 'timestamp':
55
57
  return scalars.GraphQLDateTime
58
+ case 'timestamptz':
59
+ return scalars.GraphQLDateTime
56
60
  case 'uuid':
57
61
  return graphql.GraphQLID
58
62
  case 'json':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/sql-graphql",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Map SQL dbs to GraphQL",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -18,16 +18,16 @@
18
18
  "@matteo.collina/snap": "^0.1.0",
19
19
  "@matteo.collina/tspl": "^0.1.0",
20
20
  "@mercuriusjs/gateway": "^1.2.0",
21
- "borp": "^0.4.2",
21
+ "borp": "^0.5.0",
22
22
  "fastify": "^4.23.2",
23
23
  "snazzy": "^9.0.0",
24
24
  "standard": "^17.1.0",
25
- "tsd": "^0.29.0",
25
+ "tsd": "^0.30.0",
26
26
  "why-is-node-running": "^2.2.2",
27
27
  "ws": "^8.14.2",
28
- "@platformatic/sql-mapper": "1.16.0",
29
- "@platformatic/sql-events": "1.16.0",
30
- "@platformatic/telemetry": "1.16.0"
28
+ "@platformatic/sql-events": "1.17.0",
29
+ "@platformatic/sql-mapper": "1.17.0",
30
+ "@platformatic/telemetry": "1.17.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "@fastify/error": "^3.3.0",
@@ -39,14 +39,14 @@
39
39
  "graphql-type-json": "^0.3.2",
40
40
  "inflected": "^2.1.0",
41
41
  "mercurius": "^13.1.0",
42
- "@platformatic/utils": "1.16.0"
42
+ "@platformatic/utils": "1.17.0"
43
43
  },
44
44
  "tsd": {
45
45
  "directory": "test/types"
46
46
  },
47
47
  "scripts": {
48
48
  "lint": "standard | snazzy",
49
- "test": "standard | snazzy && npm run test:typescript && npm run test:postgresql && npm run test:mariadb && npm run test:mysql && npm run test:mysql8 && npm run test:sqlite",
49
+ "test": "npm run lint && npm run test:typescript && npm run test:postgresql && npm run test:mariadb && npm run test:mysql && npm run test:mysql8 && npm run test:sqlite",
50
50
  "test:postgresql": "DB=postgresql borp --concurrency=1 test/*.test.js",
51
51
  "test:mariadb": "DB=mariadb borp --concurrency=1 test/*.test.js",
52
52
  "test:mysql": "DB=mysql borp --concurrency=1 test/*.test.js",