Skip to content

Allow sharing GraphQL queries as links #19622

Open
@mraerino

Description

@mraerino

NetBox version

v.4.3.1

Feature type

Change to existing functionality

Proposed functionality

It should be possible to construct links that go to /graphql/ and prefill the query (and maybe variables) in the GraphiQL UI with a certain value contained in the URL.

Usually in GraphiQL, this works by using the ?query= URL parameter, but since that's used to send a GraphQL query via GET, it cannot be used when still wanting to show the GraphiQL interface.
Therefore I propose to use #query= in the URL which has the advantage to also not be sent to the server and not polluting access logs.

Use case

This is for cases where i have complex queries i want to share with my collegues in a convenient way

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

complexity: lowRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions