Skip to content

Commit 25f795d

Browse files
feat: update schemas schema to schemas test
1 parent cc13da3 commit 25f795d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

schema/schemas.graphql

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""A JSON schema"""
2+
type JSONSchema {
3+
"""The identifier of the schema"""
4+
id: String!
5+
6+
"""A URL from which the schema can be accessed"""
7+
url: String!
8+
9+
"""The type of object the shema describes (if known)"""
10+
type: String
11+
12+
"""The title of the schema"""
13+
title: String
14+
15+
"""The version of the schema"""
16+
version: String
17+
18+
"""The instrument the schema was created for"""
19+
instrument: String
20+
21+
"""The description og the schema"""
22+
description: String
23+
}
24+
25+
type Query {
26+
_service: _Service!
27+
jsonSchema(url: String!): JSONSchema
28+
jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]!
29+
}
30+
31+
scalar _Any
32+
33+
type _Service {
34+
sdl: String!
35+
}

supergraph-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ subgraphs:
1515
routing_url: https://sample-information.diamond.ac.uk/api/graphql
1616
schema:
1717
file: schema/samples.graphql
18+
schemas:
19+
routing_url: https://schemas.diamond.ac.uk/graphql
20+
schema:
21+
file: schema/schemas.graphql

0 commit comments

Comments
 (0)