graphql / graphql/graphiql

[graphiql] variables of type JSON not accepted

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

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

we have a vairable of the type JSON:

Image

graphiql doesn't allow me to define any arbitrary JSON for this variable:

Image

in other graphql webui it works fine. e.g. nitro of hotchocolate can handle this type.

### Expected Behavior

allow to assign any JSON value to this vairable

### Steps To Reproduce

see above

### Environment

* GraphiQL Version: 5.2.0
* OS: Windows 11
* Browser: Edge
* Bundler: Vite
* `react` Version: 19
* `graphql` Version:

### Anything else?

_No response_

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.