Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strawberry Graphql does not allow extension by plugins #18435

Open
129828 opened this issue Jan 20, 2025 · 0 comments
Open

Strawberry Graphql does not allow extension by plugins #18435

129828 opened this issue Jan 20, 2025 · 0 comments
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation topic: GraphQL type: bug A confirmed report of unexpected behavior in the application

Comments

@129828
Copy link

129828 commented Jan 20, 2025

Deployment Type

Self-hosted

NetBox Version

v4.0.9

Python Version

3.10

Steps to Reproduce

In versions before V4 it was possible to extend the graphql api using plugins:
For example a plugin that added EVPN data was able to be queried from the vlan:

{
  vlan_list{
    vid
    evpnvcvlan{
      evpn_vc {
      	vni
      }
    }
  }
}

This was done in the plugin itself and allowed to easily create links back and forth.

For example from a publicly available plugin, the netbox-bgp previously had this behaviour where it was possible to use graphql to query nested data.:

{
 device_list{
    bgpsession_set{
    	name
    }
  }
}

But in V4

{
 device_list{
    bgpsession_set{} <-- Yields an error
  }
}

And looking through the documentation of the strawberry api, I cannot seem to find a way to reenable this functionality.
The only option would be to first get all devices and then all bgpsession which have the device assigned, but the whole point of graphql is to only do a single request.

previous issue about this #17242

Expected Behavior

In version 4 it should still be possible to query the graphql api by using nested data from plugins, as right now it's only possible to do this using the netbox provided models.

Observed Behavior

It is not possible to use graphql to query nested plugin data

@129828 129828 added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Jan 20, 2025
@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows topic: GraphQL and removed status: needs triage This issue is awaiting triage by a maintainer labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation topic: GraphQL type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants