Skip to content

Commit f9fcb44

Browse files
committed
Add schema check composed SDL fields to public API
1 parent 80172a5 commit f9fcb44

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.changeset/tough-lands-rule.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Add schema check composed SDL fields to public API
6+
7+
```graphql
8+
query CheckComposedSchemas($targetRef: TargetReferenceInput!, $checkId: ID!) {
9+
target(reference: $targetRef) {
10+
schemaCheck(id: $checkId) {
11+
compositeSchemaSDL # newly added
12+
supergraphSDL # newly added
13+
}
14+
}
15+
}
16+
```

packages/services/api/src/modules/schema/module.graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,8 +1639,8 @@ export default gql`
16391639
"""
16401640
schemaPolicyErrors: SchemaPolicyWarningConnection
16411641
1642-
compositeSchemaSDL: String
1643-
supergraphSDL: String
1642+
compositeSchemaSDL: String @tag(name: "public")
1643+
supergraphSDL: String @tag(name: "public")
16441644
"""
16451645
Results of the contracts
16461646
"""

0 commit comments

Comments
 (0)