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

Variable editor is broken #372

Closed
schickling opened this issue Dec 29, 2017 · 1 comment
Closed

Variable editor is broken #372

schickling opened this issue Dec 29, 2017 · 1 comment

Comments

@schickling
Copy link
Collaborator

Seems like the variable editor is broken in one of the recent releases.

Error message:

image

Example:

input UserCreateInput {
  role: Role!
  email: String
  password: String
  posts: PostCreateManyWithoutAuthorInput
}

mutation ($_data: UserCreateInput!) {
  createUser(data: $_data) {
    id
  }
}
{
  "_data": {
    "role": "CUSTOMER",
    "email": "testa10",
    "password": "testest"
  }
}
@sorenbs
Copy link

sorenbs commented Dec 30, 2017

It seems that Playground always treats variables as optional even when they are used for a variable that is required.

Here's the error message so others can find this issue by searching:

Uncaught Error: Can only create NonNull of a Nullable GraphQLType but got

cgxxv pushed a commit to cgxxv/graphql-playground that referenced this issue Mar 25, 2022
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

2 participants