refactor: join static and dynamic configs to reuse pollQueries()

This commit is contained in:
André Sá 2022-04-22 16:06:33 +01:00
parent df2213566e
commit d20f4968f6
3 changed files with 104 additions and 93 deletions

View file

@ -140,8 +140,12 @@ type DynamicConfig {
restartServices: Boolean!
}
type Configs {
static: StaticConfig
dynamic: DynamicConfig!
}
type Query {
staticConfig(currentConfigVersion: Int): StaticConfig
dynamicConfig: DynamicConfig!
configs(currentConfigVersion: Int): Configs!
}
`