Thanks to some great help here, I can get all the data in my board with the following query…
query {
boards (ids: [123456789]) {
items_page (limit: 50) {
cursor
items {
id
name
column_values {
id
text
value
column {
id
type
title
settings_str
}
}
}
}
}
}
The data that comes back look like this…
{
"data": {
"boards": [
{
"items_page": {
"cursor": "some-long-string-of-chars",
"items": [
{
"id": "987654321",
"name": "Company name",
"column_values": [
{
"id": "subitems__1",
"text": null,
"value": "{}",
"column": {
"id": "subitems__1",
"type": "subtasks",
"title": "Subitems",
"settings_str": "..."
}
}
]
}
// more items here
]
}
}
]
}
}
As you can see, the second property for each item is "name"
, which in my case contains the name of the company.
I now want to get the same data, but just for a single company. I found the following code in another post here…
query {
items(ids: 123456789) {
column_values {
id
value
type
text
column {
title
}
}
}
}
However, whilst this returns most of the data for the item, it misses out the name…
{
"data": {
"items": [
{
"column_values": [
// Other data here...
]
}
]
},
"account_id": 123123123
}
As you can see, this is missing the id
(which I don’t need as I know that to make the query) and the name
.
How can I get the same data as I did in the first query, but just for a single item?
Thanks