Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[graphiql] Default Value not accepted in Variable #3571

Open
1 task done
eMerzh opened this issue Mar 26, 2024 · 0 comments
Open
1 task done

[graphiql] Default Value not accepted in Variable #3571

eMerzh opened this issue Mar 26, 2024 · 0 comments

Comments

@eMerzh
Copy link
Contributor

eMerzh commented Mar 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

i have a storyEdit(input: StoryEditInput!) Mutation, with input fields like this

input StoryEditInput {
  id: ID!
  publish: Boolean! = false
}

if i Put the variable inline there are no issues
Capture d’écran 2024-03-26 à 15 40 34

If i put the variable in variable panel, the lint isn't happy

Capture d’écran 2024-03-26 à 15 37 28

Expected Behavior

The Same behavior should be done if both panel (not warning about missing variables)

Steps To Reproduce

not provide an input variable with a default

Environment

  • GraphiQL Version:
  • OS:
  • Browser:
  • Bundler:
  • react Version:
  • graphql Version:

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant