Skip to main content

Reading the people column

  • October 26, 2023
  • 1 reply
  • 224 views

Hi guys

I am trying to read the people column, and I am encountering an error. Please see the code below.

Query

const personsObjects = await monday.api(`query {
                            items (ids:738909449) {
                              column_values(ids: "people") {
                                ... on PeopleValue {
                                   persons_and_teams{
                                    id
                                  }
                                }
                              }
                            }
                          }`)

Response
message":"No such type PeopleValue, so it can’t be a fragment condition

1 reply

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • October 26, 2023

Hello there @royalayofdigital,

It looks to me like you might be using API’s version 2023-07.

Would you be able to please try adding in the headers of your request:

API-Version : 2023-10

Please let me know how that foes!

Cheers,
Matias