Retrieve a single user by ID
Create a new post via mutation
Update an existing post
Retrieve a single post by ID
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ post(id: 1) { id title content author { name } } }"}'
Queries a specific post. Useful for detail views or editing content.
Fetch post ID 10
{ post(id: 10) { title content } }
Remove a post by ID
Retrieve a list of all users
Retrieve all posts with fields