@platformatic/sql-graphql 1.6.1 → 1.7.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.
Files changed (2) hide show
  1. package/lib/telemetry.js +2 -1
  2. package/package.json +5 -5
package/lib/telemetry.js CHANGED
@@ -44,8 +44,9 @@ const setupTelemetry = app => {
44
44
  const schemaTypeName = schemaType.name.toLowerCase() // query, mutation, subscription
45
45
  if (typeof schemaType.getFields === 'function') {
46
46
  for (const [fieldName, field] of Object.entries(schemaType.getFields())) {
47
- if (typeof field.resolve === 'function') {
47
+ if (typeof field.resolve === 'function' && !schemaTypeName.startsWith('__')) {
48
48
  field.resolve = telemetryWrapper(app, field.resolve, schemaTypeName, fieldName)
49
+ field.resolve.__wrapped = true
49
50
  }
50
51
  }
51
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/sql-graphql",
3
- "version": "1.6.1",
3
+ "version": "1.7.1",
4
4
  "description": "Map SQL dbs to GraphQL",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -22,9 +22,9 @@
22
22
  "tap": "^16.3.9",
23
23
  "tsd": "^0.29.0",
24
24
  "ws": "^8.14.2",
25
- "@platformatic/sql-events": "1.6.1",
26
- "@platformatic/sql-mapper": "1.6.1",
27
- "@platformatic/telemetry": "1.6.1"
25
+ "@platformatic/sql-events": "1.7.1",
26
+ "@platformatic/sql-mapper": "1.7.1",
27
+ "@platformatic/telemetry": "1.7.1"
28
28
  },
29
29
  "dependencies": {
30
30
  "@fastify/error": "^3.3.0",
@@ -36,7 +36,7 @@
36
36
  "graphql-type-json": "^0.3.2",
37
37
  "inflected": "^2.1.0",
38
38
  "mercurius": "^13.1.0",
39
- "@platformatic/utils": "1.6.1"
39
+ "@platformatic/utils": "1.7.1"
40
40
  },
41
41
  "tsd": {
42
42
  "directory": "test/types"