Skip to content

GraphQL filter for "ip_address_list" - Filter query tag works not as accepted #16305

@SchmidtJonathan1

Description

@SchmidtJonathan1

Deployment Type

Self-hosted

NetBox Version

v4.0.3

Python Version

3.12

Steps to Reproduce

When a query is created in Graphql Explorer that accesses the class "ip_address_list". Cannot be filtered by "tags" as there is only one parameter called "tag".

#Graphql query:

query MyQuery {
  ip_address_list(filters: {tag: "Gateway"}) {
    tags{
      name
    }
  }
}

Expected Behavior

{
  "data": {
    "ip_address_list": [
      {
        "id": "15",
        "tags": [
          {
            "name": "Gateway"
          }
        ]
      }
}

Observed Behavior

{
  "data": {
    "ip_address_list": [
      {
        "id": "2",
        "tags": []
      },
      {
        "id": "3",
        "tags": []
      },
      {
        "id": "4",
        "tags": []
      },
      {
        "id": "15",
        "tags": [
          {
            "name": "Gateway"
          }
        ]
      }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtopic: GraphQLtype: bugA confirmed report of unexpected behavior in the application

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions