refactor: remove command field from GraphQL Alarm type

command is generated internally and has no informational value to API
consumers, so stop exposing it on getAlarms/getAlarm/setAlarm.
This commit is contained in:
2026-06-22 10:04:48 +02:00
parent b2bb5bdaf9
commit a67f57c37e
3 changed files with 28 additions and 16 deletions
+3 -4
View File
@@ -82,7 +82,6 @@ query {
getAlarms {
id
cronExpression
command
isEnabled
}
}
@@ -92,16 +91,16 @@ query {
```graphql
mutation {
setAlarm(
cronExpression: "45 6 * * 1-5",
cronExpression: "45 6 * * 1-5",
isEnabled: true
) {
id
cronExpression
command
isEnabled
}
}
```
*(Note: The `command` is managed automatically by the API and cannot be overridden, to prevent command injection into the system crontab.)*
*(Note: `command` is generated automatically by the API and is **not** accepted as an input parameter on `setAlarm`, to prevent command injection into the system crontab.)*
**Delete an alarm:**
```graphql