GraphQL: Add device_type as a filter for device_list / device #9584
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.2.5
Feature type
Change to existing functionality
Proposed functionality
Currently, you can only filter device_type_id in the graphql filters. It would be good to filter on either the slug or the name of device_type. It actually looks like this function is missing from the normal rest api also.
Current way to filter on device_type:
Requested approach:
Use case
Often individuals do not know the id, so its hard to pass said value if you do not know it.
Frankly this just further sets graphql API standardization since this is already supported for device_role (you can filter on it like below):
Database changes
N/A
External dependencies
N/A
The text was updated successfully, but these errors were encountered: