-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add assigned_object models in GraphQL API similar to the REST API #9817
Comments
Unfortunately it looks like it is not supported as is with graphen-django This looks like a valid approach: |
Given that graphene-django is no longer maintained, we'll likely be moving to an alternate implementation in a future release anyway. |
Blocked by #9856 |
Using a UnionType looks like the preferred method - The Graphene docs has it in their test cases but not very clear, this https://wagtail.org/blog/graphql-with-streamfield/ is a fairly good example. Will implement with this pattern. |
NetBox version
v3.3-beta
Feature type
Change to existing functionality
Proposed functionality
As an example, currently you can only query:
and it returns:
Where the rest api allows you to query the same model and get the assigned_object back:
It would be ideal that all usage of any assigned_object/assigned_object_type approach would update the graphql api to return the assigned_object.
Use case
rest and graphql feature parity.
Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: