Make it possible to add relations to plugin models to GraphQL types #17826
Labels
netbox
status: duplicate
This issue has already been raised
type: feature
Introduction of new functionality to the application
NetBox version
v4.1.4
Feature type
New functionality
Triage priority
N/A
Proposed functionality
Currently the relations that can be retrieved with the GraphQL
TenantType
object type are hard-coded intenancy/graphql/types.py
.I suggest adding a way to register plugin models with GraphQL so that it's possible to retrieve plugin objects together with tenanty, like this:
Currently only the opposite direction works:
Use case
I am maintaining a plugin that supports tenancy for some of its models. It would be useful be able to get a list of plugin objects when querying a tenant.
Database changes
None
External dependencies
No response
The text was updated successfully, but these errors were encountered: