You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
device_list(status: "Active", role: "Server") {
name
interface {
mac_address // can be null
ip_addresses {
id
address // can be empty array
custom_fields // can be blank
}
}
}
}
the graphql query itself very slow and returning html error after 5 minutes unless i remove ip_addresses part, how can I filter out/remove unnecessary nested field? eg. remove those without mac_address, remove those without address/custom_fields, etc
currently it returns something like this:
{
"id": "79",
"name": "nls-xxx-xxx-1",
"interfaces": [
{
"mac_address": null,
"ip_addresses": []
}, // a lot of these
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have query something like this:
the graphql query itself very slow and returning html error after 5 minutes unless i remove
ip_addresses
part, how can I filter out/remove unnecessary nested field? eg. remove those without mac_address, remove those without address/custom_fields, etccurrently it returns something like this:
Beta Was this translation helpful? Give feedback.
All reactions