Query all boards in account returns only 25 boards - many missing

I’m querying all boards in our account and I am only getting 25 boards returned. Many of the boards I’m looking for are not included.
Here is my query:

monday.api(
      `query {
        complexity{
          query
        }
        boards() {
          id
          name
          owner {
              id
              name
          }
        }
      }`
    )

I’ve tried removing the complexity code block thinking that might be the issue but with no success.

monday.com by default returns only 25 elements if you don’t specify the limit argument. To return let’s say 100 boards, you will have to add the limit argument to board.

monday.api(
      `query {
        complexity{
          query
        }
        boards(limit:100) {
          id
          name
          owner {
              id
              name
          }
        }
      }`
   )
1 Like

Thanks so much for stepping in, @kolaai ! I appreciate your help all around :slight_smile:

I’m glad this was the solution as well, Shawn1

-Alex

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.