Retrieving assets that are not blank/not null

I am trying to retrieve only assets that are not blank and not null via GraphQL on Monday.com. Any idea how to solve this issue?

Hi @mbakhishov,

This looks to be a bug in our API!

Would you please share with us your account details (such as Board ID, Account ID) in an email to appsupport@monday.com so we can investigate?

Be sure to also include the query you’re using to call our API.

Thanks!

Hi @alessandra.

I am trying to return Only assets that has an ID or Public URL.

Here is the query I am using:

{
boards(ids: 12345678910) {
items(limit: 10) {
assets {
id
name
public_url
}
}
}
}

and I am getting this as a result:

{
“data”: {
“boards”: [
{
“items”: [
{
“assets”:
},
{
“assets”:
},
{
“assets”:
},
{
“assets”:
},
{
“assets”:
},
{
“assets”: [
{
“id”: “123456789”,
“name”: “File Name”,
“public_url”: “Public URL”
}
]
},
{
“assets”:
},
{
“assets”:
},
{
“assets”:
},
{
“assets”:
}
]
}
]
},
“account_id”: 1234567
}

Hello @mbakhishov!

As my colleague mentioned, for this to be taken care of by our technical support team, we have to ask you to please share with our team your account details (such as Board ID, Account ID) in an email to appsupport@monday.com, including also the query you are using and the response you are getting.

In this way, our team will be able to open a report if needed and follow this with you.

Cheers,
Matias