30 lines
439 B
GraphQL
30 lines
439 B
GraphQL
|
|
type Query {
|
||
|
|
subGraphs(ref: String!): [SubGraph!]! @hasApiKey
|
||
|
|
}
|
||
|
|
|
||
|
|
type Mutation {
|
||
|
|
updateSubGraph(input: InputSubGraph!): SubGraph! @hasApiKey
|
||
|
|
}
|
||
|
|
|
||
|
|
type SubGraph {
|
||
|
|
id: ID!
|
||
|
|
service: String!
|
||
|
|
url: String
|
||
|
|
wsUrl: String
|
||
|
|
sdl: String!
|
||
|
|
changedBy: String!
|
||
|
|
changedAt: Time!
|
||
|
|
}
|
||
|
|
|
||
|
|
input InputSubGraph {
|
||
|
|
ref: String!
|
||
|
|
service: String!
|
||
|
|
url: String
|
||
|
|
wsUrl: String
|
||
|
|
sdl: String!
|
||
|
|
}
|
||
|
|
|
||
|
|
scalar Time
|
||
|
|
|
||
|
|
directive @hasApiKey on FIELD_DEFINITION
|