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
|`subgraphs`|[`SubgraphInfo[]`](#subgraphinfo) or `undefined`| A list of subgraphs that trigger the check. |
17
17
|`compositions`|[`CompositionInfo[]`](#compositioninfo) or `undefined`| A list of all compositions produced by the check. |
18
-
|`lintIssues`|[`LintIssues[]`](#lintissue) or `undefined`| A list containing all the lint issues detected based on the `Lint Policies`. |
19
-
|`graphPruningIssues`|[`GraphPruningIssues[]`](#graphpruningissue) or `undefined`| A list containing all the graph pruning issues detected based on the `Graph Pruning Policies`|
20
-
|`schemaChanges`|[`SchemaChangeInfo[]`](#schemachangeinfo) or `undefined`| A list containing all the changes detected by the check. |
21
18
|`affectedOperations`|[`AffectedOperationInfo[]`](#affectedoperationinfo) or `undefined`| A list containing all the operations affected by the check. |
|`id`|`string`| The unique identifier of the subgraph. |
24
+
|`name`|`string`| The name of the subgraph. |
25
+
|`labels`|[`LabelInfo[]`](#labelinfo)| The list of labels the subgraph is associated with. |
26
+
|`oldComposedSdl`|`string` or `undefined`| The original subgraph SDL |
27
+
|`newComposedSdl`|`string` or `undefined`| The new subgraph SDL |
28
+
|`lintIssues`|[`LintIssue[]`](#lintissue) or `undefined`| A list containing all the lint issues detected based on the `Lint Policies`. |
29
+
|`graphPruningIssues`|[`GraphPruningIssue[]`](#graphpruningissue) or `undefined`| A list containing all the graph pruning issues detected based on the `Graph Pruning Policies`|
30
+
|`schemaChanges`|[`SchemaChangeInfo[]`](#schemachangeinfo) or `undefined`| A list containing all the changes detected by the check. |
31
+
30
32
31
33
## CompositionInfo
32
34
| Field | Type | Description |
@@ -37,6 +39,14 @@ description: "Definition of the Subgraph Check extension payload structure."
37
39
|`federatedClientSchema`|`string`| The composed schema for the Federated Client. |
38
40
|`subgraphs`|[`CompositionSubgraphInfo[]`](#compositionsubgraphinfo)| A collection of all subgraphs that contributed to this composition. |
39
41
42
+
### LabelInfo
43
+
Provides information about the labels associated with the subgraph.
Copy file name to clipboardExpand all lines: docs/studio/sce/response-structure.mdx
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,18 @@ description: "Definition of the response payload structure for Subgraph Check Ex
8
8
When your server receives a request from the Subgraph Check Extension, it must respond with either `204 No Content`, which indicates that nothing changed, or `200 OK` with the structure described below.
9
9
10
10
The response payload allows you to append a collection of **LintIssues** to the check, which will be displayed on the
11
-
Check results page.
11
+
Check results page. To do this, the response must contain the `lintIssues` field with the **subgraph name** as the key
12
+
and the **LintIssues** as the value.
13
+
12
14
You can also return a collection of error messages to be displayed in the extension’s UI.
13
15
14
16
The response payload must be a JSON object no larger than **5 MB**.
|`errors`|`string[]` or `undefined`| An optional collection of errors caught by the check extension. When one or more errors are returned, the subgraph check extension reports the result as a failure. |
20
-
|`lintIssues`|[`LintIssue[]`](#lintissue) or `undefined`| An optional collection of lint issues that will be appended to the ones reported by the internal lint check. If you only want to see issues reported by your service, disable the `Lint Policies`. |
|`errors`|`string[]` or `undefined`| An optional collection of errors caught by the check extension. When one or more errors are returned, the subgraph check extension reports the result as a failure.|
22
+
|`lintIssues`|`Record<string, `[`LintIssue[]`](#lintissue)`>` or `undefined`| An optional map of the lint issues by subgraph name that will be appended to the ones reported by the internal lint check. If you only want to see issues reported by your service, disable the `Lint Policies`. |
0 commit comments