From e70d1b3d15009e20abf652c347eb0fe5d6f32c0a Mon Sep 17 00:00:00 2001 From: "dls-graph-schema-federator[bot]" <183111110+dls-graph-schema-federator[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:00:59 +0000 Subject: [PATCH] feat: update schemas schema to schemas test --- schema/schemas.graphql | 35 +++++++++++++++++++++++++++++++++++ supergraph-config.yaml | 4 ++++ 2 files changed, 39 insertions(+) create mode 100644 schema/schemas.graphql diff --git a/schema/schemas.graphql b/schema/schemas.graphql new file mode 100644 index 0000000..53f0969 --- /dev/null +++ b/schema/schemas.graphql @@ -0,0 +1,35 @@ +"""A JSON schema""" +type JSONSchema { + """The identifier of the schema""" + id: String! + + """A URL from which the schema can be accessed""" + url: String! + + """The type of object the shema describes (if known)""" + type: String + + """The title of the schema""" + title: String + + """The version of the schema""" + version: String + + """The instrument the schema was created for""" + instrument: String + + """The description og the schema""" + description: String +} + +type Query { + _service: _Service! + jsonSchema(url: String!): JSONSchema + jsonSchemas(type: String = null, instrument: String = null): [JSONSchema!]! +} + +scalar _Any + +type _Service { + sdl: String! +} diff --git a/supergraph-config.yaml b/supergraph-config.yaml index 469f0f1..a404cd5 100644 --- a/supergraph-config.yaml +++ b/supergraph-config.yaml @@ -12,3 +12,7 @@ subgraphs: routing_url: https://sample-information.diamond.ac.uk/api/graphql schema: file: schema/samples.graphql + schemas: + routing_url: https://schemas.diamond.ac.uk/graphql + schema: + file: schema/schemas.graphql