Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions schema/schemas.graphql
Original file line number Diff line number Diff line change
@@ -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!
}
4 changes: 4 additions & 0 deletions supergraph-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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