Create a new user via mutation
Update an existing user's details
Retrieve a single user by ID
Remove a user by ID
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { deleteUser(id: 1) { id } }"}'
Deletes a user from the database. Useful for account removal or administrative cleanup.
Delete user with ID 5
mutation { deleteUser(id: 5) { id } }
Remove a post by ID
Create a new post via mutation
Update an existing post