graphql / graphql/graphiql

[graphiql] Add ability for custom namespace for graphiql variables stored in localstorage

Open
#2,794 2 comments 4 reactions 0 assignees View on GitHub
enhancement graphiql
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

Hi, I have deployed multiple service in same domain with path based approach (due to project requirement).

Example:
1. `https://api.domain.com/serviceAbc/graphiql`
2. `https://api.domain.com/serviceXyz/graphiql`

As localStorage is used for `https://api.domain.com` as a whole and graphiql uses the constant `graphiql:` as prefix, the values will be overwritten for both services.

Please allow to set a optional custom storage namespace so that the values can be stored with `{{namespace}}:graphiql:` prefix.

Note: I am using cdn based approach in graphiql

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.