Skip to main content

"No query string was present" Error Using Postman

  • March 20, 2022
  • 1 reply
  • 2377 views

I am trying to execute an API v2 query using Postman as discussed in this excellent video (see 42:30):

Introduction to GraphQL API | monday.com webinars|Introduction to GraphQL API | monday.com webinars

My Body in Postman is as follows:

{"query" : "{boards (ids:2319318210){id name items{id name}}}"}

But I get this error:

{
    "errors": [
        {
            "message": "No query string was present"
        }
    ],
    "account_id": xxxxxxx
}

However I am able to successfully execute the equivalent query in the Monday.com API playground:

query {
  boards (ids:xxxxxxxxxx){
    id
    name
    items {
      id name
    }
  }
}

What do I need to change in my Postman query for this to work?

1 reply

  • Author
  • New Participant
  • March 21, 2022

Problem solved

Postman apparently changed since the video was made

The format for the query is simpler. Plus you have to check GraphQL instead of Raw:

query {
boards (ids:xxxxxxxxxx){id name items {id name}}
}