This commit is contained in:
Fabian Neumann
2018-05-11 11:19:09 +02:00
parent eda9a0cadf
commit b73620bcb0
11 changed files with 157 additions and 0 deletions
@@ -0,0 +1 @@
module.exports = {};
@@ -0,0 +1,10 @@
const { get } = require('lodash');
module.exports = {
Settings: {
globalSwitchoffEnable: settings =>
get(settings, 'globalSwitchoffEnable', false),
globalSwitchoffMessage: settings =>
get(settings, 'globalSwitchoffMessage', ''),
},
};
@@ -0,0 +1,10 @@
type Settings {
globalSwitchoffEnable: Boolean
globalSwitchoffMessage: String
}
input UpdateSettingsInput {
globalSwitchoffEnable: Boolean
globalSwitchoffMessage: String
}