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

[bug] can't accept null to array input type(nil pointer panic) #110

Closed
imiskolee opened this issue May 9, 2018 · 0 comments
Closed

[bug] can't accept null to array input type(nil pointer panic) #110

imiskolee opened this issue May 9, 2018 · 0 comments

Comments

@imiskolee
Copy link

define a simple input struct

input A {
  slices:[Int]
}
mutation {
  create(input:A)
}

its will panic of nil pointer.

mutation {
  A(slices:null) {slices}
}

question 1:

  1. Did graphQL need support null -> array ?
imiskolee pushed a commit to imiskolee/gqlgen that referenced this issue May 9, 2018
vektah added a commit that referenced this issue May 12, 2018
@vektah vektah closed this as completed May 12, 2018
cgxxv pushed a commit to cgxxv/gqlgen that referenced this issue Mar 25, 2022
cgxxv pushed a commit to cgxxv/gqlgen 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants