mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.0 KiB
56 lines
1.0 KiB
6 years ago
|
# ===============================================
|
||
|
# RENDERING
|
||
|
# ===============================================
|
||
|
|
||
|
extend type Query {
|
||
|
rendering: RenderingQuery
|
||
|
}
|
||
|
|
||
|
extend type Mutation {
|
||
|
rendering: RenderingMutation
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# QUERIES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type RenderingQuery {
|
||
|
renderers(
|
||
|
filter: String
|
||
|
orderBy: String
|
||
|
): [Renderer]
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# MUTATIONS
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type RenderingMutation {
|
||
|
updateRenderers(
|
||
|
renderers: [RendererInput]
|
||
|
): DefaultResponse
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# TYPES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type Renderer {
|
||
|
isEnabled: Boolean!
|
||
|
key: String!
|
||
|
title: String!
|
||
|
description: String
|
||
|
icon: String
|
||
|
dependsOn: String
|
||
|
input: String
|
||
|
output: String
|
||
|
config: [KeyValuePair]
|
||
|
}
|
||
|
|
||
|
input RendererInput {
|
||
|
isEnabled: Boolean!
|
||
|
key: String!
|
||
|
mode: String!
|
||
|
config: [KeyValuePairInput]
|
||
|
}
|