Sending a POST Request to a GraphQL API

As per the official documentation, body should be in json format. I’m pasting below the format from the page:
Try creating your query as below

‘{“query”: “{ courseCatalog { nodes { title }}}”}’

Below should be your message body.

‘{“query” :“{
contentProgress(first: 1000) {
totalCount
pageInfo {
endCursor
hasNextPage
}
nodes {
planId
user{
id
firstName
lastName
email
note
}
contentId
contentTitle
firstActivityOn
lastActivityOn
duration
percentComplete
}
}
}”}’

Let me know if this doesn’t works, I will try to run it in my studio and update it.