Command
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { updateUser(id: 1, name: \"Alice Updated\") { id name email } }"}'
Explanation
Modifies user information such as name or email. Useful for profile editing or admin updates.
Examples
Update email of user ID 5
mutation { updateUser(id: 5, email: \"bob_new@example.com\") { id name email } }