summaryrefslogtreecommitdiff
path: root/src/graphql/mutation.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-09-12 11:46:27 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-09-12 11:46:27 +0200
commit105f6831d13ebb473b6ce9b63c5c159b5a6c964d (patch)
tree0e408145276bf8be723710e0a57d872afa9fd49c /src/graphql/mutation.rs
parent48a0c0f007bff5df95c69b727e3ee0e6c3b9bfeb (diff)
Each alert has text{1,2,3} for the three possible area
Alert level is moved to the notification struct
Diffstat (limited to 'src/graphql/mutation.rs')
-rw-r--r--src/graphql/mutation.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphql/mutation.rs b/src/graphql/mutation.rs
index 4a31428..34aa1cc 100644
--- a/src/graphql/mutation.rs
+++ b/src/graphql/mutation.rs
@@ -149,7 +149,7 @@ impl Mutation {
/// -H "Content-Type: application/json" \
/// -H "Authorization: Bearer ****" \
/// -d '{
- /// "query": "mutation NewAlert($input: AlertInput!) { newAlert(input: $input) { id createdAt level } }",
+ /// "query": "mutation NewAlert($input: AlertInput!) { newAlert(input: $input) { id createdAt } }",
/// "variables": {
/// "input": {
/// "points": [
@@ -159,7 +159,9 @@ impl Mutation {
/// { "latitude": 44.498321, "longitude": 11.312145},
/// { "latitude": 44.490025, "longitude": 11.311498}
/// ],
- /// "level": "TWO"
+ /// "text1": "Alert level 1",
+ /// "text2": "Alert level 2",
+ /// "text3": "Alert level 3"
/// }
/// }
/// }