Command
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { deletePost(id: 1) { id } }"}'
Explanation
Deletes a post from the database. Useful for moderation or cleanup tasks.
Examples
Delete post ID 3
mutation { deletePost(id: 3) { id } }