How to fetch all data from a board?

AFAIK a board contains one or more items, each item is like a row in tabular data, if I have a board with lot’s of items, and each item has some values stored in it, then how can I fetch all those data from the board?

Hello @AmirSaleem and welcome to the community!

I hope you like it here :muscle:

If you are using the 2023-07 version of the API, you can use something like this and iterate through the pages:

{
  boards(ids: 1234567890) {
    items(limit: 20, page: 1) {
      name
      id
      column_values {
        text
        value
      }
    }
  }
}

If you are using version 2023-10, you can do something like this and use the cursor for pagination:

{
  boards(ids: 1234567890) {
    items_page(limit: 20) {
      cursor
      items {
        id
        name
        column_values {
          id
          text
          value
        }
      }
    }
  }
}

Please take this into account.

Hope that helps!

Cheers,
Matias

1 Like

Thanks @Matias, it worked for me.

1 Like

Happy to help @AmirSaleem !!!

Let us know if you need anything else :grin:

Cheers,
Matias

1 Like