GraphQL Query Family Filter Errors After Upgrading to NetBox 4.4.1 #20423
-
Hello everyone, We recently upgraded our NetBox instance from version 4.1.11 to 4.4.1, and we’re encountering several GraphQL query errors that were not present before. Here is the query we were using successfully in 4.1.11: {
aggregate_v6: aggregate_list(filters: {family: 6}) {
prefix
}
sites: site_list {
name
custom_fields
}
prefixes_v4: prefix_list(filters: {family: 4}) {
prefix
role {
name
}
vrf {
name
}
vlan {
vid
}
}
prefixes_v6: prefix_list(filters: {family: 6}) {
prefix
role {
name
}
vrf {
name
}
vlan {
vid
}
}
} After upgrading to NetBox 4.4.1, we now get the following errors: {
"data": null,
"errors": [
{
"message": "Field 'family' is not defined by type 'AggregateFilter'.",
"locations": [
{
"line": 2,
"column": 42
}
]
},
{
"message": "Field 'family' is not defined by type 'PrefixFilter'.",
"locations": [
{
"line": 9,
"column": 38
}
]
},
{
"message": "Field 'family' is not defined by type 'PrefixFilter'.",
"locations": [
{
"line": 21,
"column": 38
}
]
}
]
} It seems that the family filter is no longer supported in aggregate_list and prefix_list and there is no apparent way to filter by family. We would appreciate help with either:
Thanks in advance for your support! KC |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi KC, It seems someone else has run into a similar requirement and opened a bug report here: That issue is focused on the Hope that helps. |
Beta Was this translation helpful? Give feedback.
Hi KC,
It seems someone else has run into a similar requirement and opened a bug report here:
#20422
That issue is focused on the
iregex
filter, but I’d say the missingfamily
filter is also worth raising as a feature request. Just keep in mind that the GraphQL changes were introduced starting with NetBox v4.3.Hope that helps.