Graphql post body “Must provide query string.”

Post request needs to manage headers info.

  1. Using Http client – Content-Type: application/json

  2. Using Postman client – Content-Type: application/graphql

but request body looks like string

{"query":"mutation{update(id:1,x1:\"zazaz\",x2:\"zazaz\"......){id x1 x2}}"}

Leave a Comment