Skip to main content

I was wondering if there was a way to get within the request of items along with the assets of files the assets of mirrored values that are also files? Right now the only way I can think about doing it, is extracting out the asset id from the column_values.display_value for a mirrored asset and making a separate call, however I don’t know if the asset id is in the displayed_value (I tried doing this:


query { assets(ids: :<>]) {
id
public_url
}
}
```).

In short, is there a way while retrieving a board's specific set of items, to get assets populated for the mirrored values linked to that board, without knowing the mirrored board's id?

This is my current GraphQL.

query {

boards(ids: <>) {

id

items_page(

limit: 50

) {

cursor

items {

id

name

created_at

updated_at

state

assets {

id

public_url

}

subitems {

id

assets {

id

public_url

}

created_at

name

creator_id

relative_link

updated_at

column_values {

id

text

type

value

column {

id

description

title

type

width

archived

}

… on MirrorValue {

id

type

value

display_value

column {

id

title

description

type

width

archived

}

}

}

}

column_values {

id

type

value

text

column {

id

description

title

type

width

archived

}

… on MirrorValue {

id

type

value

display_value

column {

id

title

description

type

width

archived

}

}

}

}

}

}

}


Hey @sabbysabs


Bill here from monday.com 👋


The display_value field should return the file’s URL for mirrored files.


This is not the public URL though, so if you needed the public URL, your suggestion on making a separate request to assets using the ID in the URL would work.


Cheers,

Bill


Thank you Bill for your response.


Reply