-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
breaking changeThis change modifies or removes some previously documented functionalityThis change modifies or removes some previously documented functionalitycomplexity: mediumRequires a substantial but not unusual amount of effort to implementRequires a substantial but not unusual amount of effort to implementneeds milestoneAwaiting prioritization for inclusion with a future NetBox releaseAwaiting prioritization for inclusion with a future NetBox releasenetboxtopic: GraphQLtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Description
NetBox version
v4.3.2
Feature type
Change to existing functionality
Proposed functionality
Currently, the GraphQL API is flat: All model queries are available under the root query. For example, querying sites:
{
site_list {
id
name
}
}
This FR proposes nesting queries within their core app or plugin, to effectively namespace queries and prevent collisions. The above query would become:
{
dcim {
site_list {
id
name
}
}
}
Use case
This change will protect against name collisions in the case where two plugins have a model with the same name, or where a plugin model has the same name as a core model.
Database changes
None
External dependencies
None
Metadata
Metadata
Assignees
Labels
breaking changeThis change modifies or removes some previously documented functionalityThis change modifies or removes some previously documented functionalitycomplexity: mediumRequires a substantial but not unusual amount of effort to implementRequires a substantial but not unusual amount of effort to implementneeds milestoneAwaiting prioritization for inclusion with a future NetBox releaseAwaiting prioritization for inclusion with a future NetBox releasenetboxtopic: GraphQLtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application