Command
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ users { id name email } }"}'
Explanation
Fetches all users from the server with their id, name, and email fields. Useful to display users in a UI or for data inspection.
Examples
GraphQL query to list users
{ users { id name email } }