Skip to content

Commit 9eca063

Browse files
committed
*
1 parent 6096c35 commit 9eca063

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

modus/functions.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,38 @@ func CreateSecurityAlert(data AlertInput) (*SecurityAlert, error) {
9393
}
9494
```
9595

96+
Now you can execute operational changes:
97+
98+
```graphql
99+
mutation {
100+
createSecurityAlert(
101+
data: {
102+
type: "INTRUSION_ATTEMPT"
103+
severity: "CRITICAL"
104+
source: "firewall_logs"
105+
}
106+
) {
107+
alertId
108+
status
109+
timestamp
110+
}
111+
}
112+
```
113+
114+
**Response:**
115+
116+
```json
117+
{
118+
"data": {
119+
"createSecurityAlert": {
120+
"alertId": "alert_20250115_001",
121+
"status": "ACTIVE",
122+
"timestamp": "2025-01-15T14:30:00Z"
123+
}
124+
}
125+
}
126+
```
127+
96128
Functions starting with `create`, `update`, `delete`, and similar action words
97129
automatically become mutations.
98130

0 commit comments

Comments
 (0)