Skip to content

[graphiql] variables of type JSON not accepted #4095

@OneCyrus

Description

@OneCyrus

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions