Using curl and GraphQL

command lineGraphQL

POST a mutation to login. We can put that GraphQL query in the body. We will receive a token and a user object.

GET an unauthenticated GraphQL query. This requires the -g flag in order to allow curly brackets {} in the URL.

GET an authenticated GraphQL query. The required headers may vary depending on the application.