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

Using empty input object value #328

Closed
herohyohwan opened this issue May 30, 2023 · 0 comments · Fixed by #329
Closed

Using empty input object value #328

herohyohwan opened this issue May 30, 2023 · 0 comments · Fixed by #329

Comments

@herohyohwan
Copy link

Hello,

I am a new user.
This issue may be a duplicate issue.

In Graphql Voyager, if you click the root type when there is an empty input type in the schema, an error occurs.


type Query{
	pizzas(filter: pizzaFilter = {}): Pizza
}

type Pizza{
  name:String
}

input pizzaFilter {
  name: String
  next: Int
  total: Int
}

Probably because of this. (pizzaFilter = {})
This error does not happen when empty input object is not the default.

type Query{
	pizzas(filter: pizzaFilter): Pizza
}

type Pizza{
  name:String
}

input pizzaFilter {
  name: String
  next: Int
  total: Int
}
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

Successfully merging a pull request may close this issue.

1 participant