Hello there, I’m still new with Monday.com V2 API.
Querying column_values is returning and duplicating the same exact first data retrieved for each column_values data on the entire query.
I was trying to query column_values from each groups, but I had a problem: every single data from each column_values is the exact same as the first column_values retrieved.
This is weird because when I tried the same query with GraphiQL service provided by Monday.com API it’s showing the data that’s supposed to be shown.
My query:
query($board_id: [Int]) { boards(ids: $board_id){ groups { id items(limit: 3, page: 1){ id name column_values{ id text } } } } }
Data retrieved: (I’m getting the same data for each column_values)
{ "data": { "boards": [ { "groups": [ { "id": "new_group", "items": [ { "id": "430013349", "name": "Test", "column_values": [ { "id": "anunciante", "text": "Gerardo Solis" }, { "id": "contrato", "text": "7861064" }, { "id": "ubicaci_n", "text": "Vallas Vía Pública" }, { "id": "elemento", "text": "Vallas PH San Judas" }, { "id": "cantidad", "text": "1" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-08-31" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-09-29" }, { "id": "fecha_de_contrataci_n", "text": "" } ] } ] }, { "id": "topics", "items": [ { "id": "218117645", "name": "7363130", "column_values": [ { "id": "anunciante", "text": "Gerardo Solis" }, { "id": "contrato", "text": "7861064" }, { "id": "ubicaci_n", "text": "Vallas Vía Pública" }, { "id": "elemento", "text": "Vallas PH San Judas" }, { "id": "cantidad", "text": "1" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-08-31" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-09-29" }, { "id": "fecha_de_contrataci_n", "text": "" } ] }, { "id": "218117652", "name": "8087067", "column_values": [ { "id": "anunciante", "text": "Gerardo Solis" }, { "id": "contrato", "text": "7861064" }, { "id": "ubicaci_n", "text": "Vallas Vía Pública" }, { "id": "elemento", "text": "Vallas PH San Judas" }, { "id": "cantidad", "text": "1" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-08-31" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-09-29" }, { "id": "fecha_de_contrataci_n", "text": "" } ] }, { "id": "218117659", "name": "8087066", "column_values": [ { "id": "anunciante", "text": "Gerardo Solis" }, { "id": "contrato", "text": "7861064" }, { "id": "ubicaci_n", "text": "Vallas Vía Pública" }, { "id": "elemento", "text": "Vallas PH San Judas" }, { "id": "cantidad", "text": "1" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-08-31" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-09-29" }, { "id": "fecha_de_contrataci_n", "text": "" } ] } ] } ] } ] }, "account_id": XXXXX }
Expected data:
{ "data": { "boards": [ { "groups": [ { "id": "new_group", "items": [ { "id": "430013349", "name": "Test", "column_values": [ { "id": "anunciante", "text": "Gerardo Solis" }, { "id": "contrato", "text": "7861064" }, { "id": "ubicaci_n", "text": "Vallas Vía Pública" }, { "id": "elemento", "text": "Vallas PH San Judas" }, { "id": "cantidad", "text": "1" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-08-31" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-09-29" }, { "id": "fecha_de_contrataci_n", "text": "" } ] } ] }, { "id": "topics", "items": [ { "id": "218117645", "name": "7363130", "column_values": [ { "id": "anunciante", "text": "Telefónica Móviles Panamá, S.A." }, { "id": "contrato", "text": "7171227" }, { "id": "ubicaci_n", "text": "Town Center" }, { "id": "elemento", "text": "Shopper fijo Town Center" }, { "id": "cantidad", "text": "1" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-01-29" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-02-11" }, { "id": "fecha_de_contrataci_n", "text": "2018-01-30" } ] }, { "id": "218117652", "name": "8087067", "column_values": [ { "id": "anunciante", "text": "Gerardo Solis" }, { "id": "contrato", "text": "7861064" }, { "id": "ubicaci_n", "text": "Vallas Vía Pública" }, { "id": "elemento", "text": "Vallas PH San Judas" }, { "id": "cantidad", "text": "1" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-08-31" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-09-29" }, { "id": "fecha_de_contrataci_n", "text": "" } ] }, { "id": "218117659", "name": "8087066", "column_values": [ { "id": "anunciante", "text": "Eleven" }, { "id": "contrato", "text": "7861064" }, { "id": "ubicaci_n", "text": "Vallas Vía Pública" }, { "id": "elemento", "text": "Vallas PH San Judas" }, { "id": "cantidad", "text": "2" }, { "id": "fecha_estimada_de_instalaci_n", "text": "2018-08-31" }, { "id": "fecha_estimada_de_desinstalaci_n", "text": "2018-09-29" }, { "id": "fecha_de_contrataci_n", "text": "" } ] } ] } ] } ] }, "account_id": XXXXX }
Also I’m using vue-apollo to get the data going. Am I doing something wrong?