@platformatic/sql-graphql 1.6.0 → 1.7.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.
- package/lib/telemetry.js +2 -1
- 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.
|
|
3
|
+
"version": "1.7.0",
|
|
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.
|
|
26
|
-
"@platformatic/sql-mapper": "1.
|
|
27
|
-
"@platformatic/telemetry": "1.
|
|
25
|
+
"@platformatic/sql-events": "1.7.0",
|
|
26
|
+
"@platformatic/sql-mapper": "1.7.0",
|
|
27
|
+
"@platformatic/telemetry": "1.7.0"
|
|
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.
|
|
39
|
+
"@platformatic/utils": "1.7.0"
|
|
40
40
|
},
|
|
41
41
|
"tsd": {
|
|
42
42
|
"directory": "test/types"
|