Skip to main content

Query works in playground but not from postman

  • January 22, 2024
  • 4 replies
  • 367 views

  • Participating Frequently

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?

4 replies

rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • January 22, 2024

Hi @sgdev,

Welcome to the community!

Can you share the response you receive in Postman?

Best,
Rachel


  • Participating Frequently
  • January 22, 2024

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).


  • Author
  • Participating Frequently
  • January 22, 2024

Thank you Cody that was exactly the issue.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • January 23, 2024

Thank you @anon29275264 for the help!!