Closed
Description
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.11
Steps to Reproduce
When querying cables and their terminations, i cannot get the device name of the terminating interface anymore (since NB v4 / strawberry GraphQL)
Example query:
query {
virtual_chassis_list {
name
members {
name
uplink_interfaces: interfaces {
name
cable {
terminations {
display
_device {
pk
}
}
}
}
}
}
}
Expected Behavior
In Netbox 3.7 we were able to query for the parent device of the termination, therefore I would expect have the same or a similar behaviour. Since the pk is available, the name shouldn't be too far away.
Observed Behavior
The DjangoModelType (in this case the _device) only has a pk attribute which provides the ID of the device.