graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph

Home Page:https://graphql-kit.com/graphql-voyager/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using empty input object value

herohyohwan opened this issue · comments

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
}