You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require.Equal(t, `{"errors":[{"message":"Failed to fetch from Subgraph 'employees'.","extensions":{"errors":[{"message":"Unauthorized","extensions":{"allowed":"allowed","notAllowed":"notAllowed"}}],"statusCode":403}}],"data":{"employees":null}}`, res.Body)
277
+
})
278
+
})
279
+
280
+
t.Run("in passthrough mode, only allowed extensions should be included in the propagated error", func(t*testing.T) {
Copy file name to clipboardExpand all lines: router/pkg/config/config.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2706,6 +2706,11 @@
2706
2706
"default": ["code"],
2707
2707
"description": "The allowed extension fields. The allowed extension fields are used to specify which fields of the Subgraph errors are allowed to be propagated to the client."
2708
2708
},
2709
+
"allow_all_extension_fields": {
2710
+
"type": "boolean",
2711
+
"default": false,
2712
+
"description": "Allow all extension fields from Subgraph errors to be propagated to the client. If the value is true (default: false), all extension fields from Subgraph errors will be propagated, overriding the allowed_extension_fields configuration."
0 commit comments