Query works in playground but not from postman

I have created a query to pull two specific columns from a specific item. When I run the query in the playground it works as expected and I can see the results I am after in the results section. However, when I run the exact same query from Postman I get two error messages ("No such type DropdownValue, so it can’t be a fragment condition; also receive this same error for the TimeTrackingValue column). Here is the query I am running

{
  items(ids: [12345678]) {
    id
    name
    column_values(ids: ["property", "duration"]) {
      ... on DropdownValue {
        id
        text
      }
      ... on TimeTrackingValue {
        id
        started_at
        duration
        history {
          started_user_id
          started_at
          ended_at
          created_at
        }
      }
    }
  }
}

Does anyone know why the query works fine in the playground and not in Postman?

Hi @sgdev,

Welcome to the community!

Can you share the response you receive in Postman?

Best,
Rachel

1 Like

My guess is you’ve enabled the extension of the 2023-07 API version being the default for the user (yourself) in monday.labs. This would result in postman using 2023-07 as the default API version which doesn’t support the column type fragments.

You’ll want to add the “API-version” header with the value “2024-01” to your postman headers (maybe at the collection level).

2 Likes

Thank you Cody that was exactly the issue.

3 Likes

Thank you @codyfrisch for the help!!

1 Like