Closed
Description
Deployment Type
Self-hosted
NetBox Version
v4.0-beta1
Python Version
3.10
Steps to Reproduce
Run the following query against the Strawberry Graphql endpoint:
{
ip_address_list {
id
assigned_object {
__typename
... on InterfaceType {
id
name
device {
name
}
}
... on FHRPGroupType {
id
name
}
... on VMInterfaceType {
id
name
}
}
}
}
Expected Behavior
The expected results are returned:
{
"data": {
"ip_address_list": [
{
"id": "1",
"assigned_object": {
"__typename": "InterfaceType",
"id": "1",
"name": "GigabitEthernet0/0/0",
"device": {
"name": "test"
}
}
},
{
"id": "2",
"assigned_object": null
}
]
}
}
Observed Behavior
An error response is returned:
{
"data": null,
"errors": [
{
"message": "Cannot return null for non-nullable field IPAddressType.assigned_object.",
"locations": [
{
"line": 4,
"column": 5
}
],
"path": [
"ip_address_list",
2,
"assigned_object"
]
}
]
}