DEV Community

Discussion on: REST vs GraphQL: The Main Differences

Collapse
 
patryktech profile image
Patryk

Here's an example of a GraphQL POST request query: /graphql?query={user{name}}.

I believe you mean GraphQL GET query, as you pass the query string as part of the URL. In POST, it should be part of the body.

Collapse
 
tdmoor profile image
Thomas De Moor

Ah yes! Thank you, corrected.