feat: theming resolvers + config fixes

This commit is contained in:
NGPixel committed 2018-06-10 23:23:09 -04:00
1 parent 1d2d1c66c1
commit 197b6b4160
15 files changed
+221 -46

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
# ===============================================
# THEMES
# ===============================================
extend type Query {
theming: ThemingQuery
}
extend type Mutation {
theming: ThemingMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type ThemingQuery {
themes: [ThemingTheme]
config: ThemingConfig
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type ThemingMutation {
setConfig(
theme: String!
darkMode: Boolean!
): DefaultResponse
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type ThemingConfig {
theme: String
darkMode: Boolean
}
type ThemingTheme {
key: String
title: String
author: String
}