graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph
https://graphql-kit.com/graphql-voyager/
MIT License
7.76k stars 514 forks source link

Using empty input object value #328

Closed herohyohwan closed 1 year ago

herohyohwan commented 1 year ago

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
}