Skip to main content

Is it possible to make a file query for a board?

  • July 8, 2021
  • 2 replies
  • 1228 views

Hi guys,

I want to make a query that gets all my files from a board.
For example, I have 100 files and I want all their public urls with one query.

For the moment i need to make this query :
query {
assets(ids: [1,2,…,100]){
public_url
}
}

But isn’t it possible to make a request for all the files in a board?

This topic has been closed for replies.

2 replies

AlexSavchuk
Forum|alt.badge.img
  • monday.com Team Member
  • July 8, 2021

Hey @Ray_Agir 👋

That’s a great question! At this time, it is not possible to query all of the files related to a specific board, but you can query a specific board and a certain number of items, returning their assets with ID and public_url. For example:

query {
  boards (ids:391141870) {
    items (limit: 100) {
      id
      assets {
        id
        public_url
      }
    }
  }
}

This can be quite a costly query complexity-wise, so I recommend limiting the numebr of items you return at a time.

Here’s how this works on my end:

I hope this is helpful.

-Alex


  • July 15, 2021

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