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

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?

Hey @Ray_Agir :wave:

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

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