Fixes #19622: Allow loading graphql query from URL in GraphiQL #1524

Closed
opened 2026-04-06 02:58:23 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @mraerino on 8/3/2025

Fixes: #19622

This adds the ability to populate the query in the built-in GraphQL IDE (GraphiQL) using a parameter specified in the URL hash (aka fragment).

E.g.

https://<your netbox>/graphql/#query=%7Bdevice_list%28filters%3A%7Binterfaces%3A%7Bip_addresses%3A%7Bfamily%3AFAMILY_6%7D%7D%7D%29%7Binterfaces%7Bip_addresses%7Baddress%20family%7Blabel%7D%7D%7D%7D%7D

I considered adding a button to copy this kind of url to the UI, but the project setup for GraphiQL (the UI component) is pretty outdated and doesn't easily allow modifications.

*Originally created by @mraerino on 8/3/2025* ### Fixes: #19622 This adds the ability to populate the query in the built-in GraphQL IDE (GraphiQL) using a parameter specified in the URL hash (aka fragment). E.g. ``` https://<your netbox>/graphql/#query=%7Bdevice_list%28filters%3A%7Binterfaces%3A%7Bip_addresses%3A%7Bfamily%3AFAMILY_6%7D%7D%7D%29%7Binterfaces%7Bip_addresses%7Baddress%20family%7Blabel%7D%7D%7D%7D%7D ``` I considered adding a button to copy this kind of url to the UI, but the project setup for GraphiQL (the UI component) is pretty outdated and doesn't easily allow modifications.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1524