OneGraph / graphiql-explorer-example

Example of OneGraph's GraphiQL Explorer in action

Home Page:https://onegraph.com/graphiql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Schema integer converted to string

davaya opened this issue · comments

After selecting a paged list, the explorer generates a correct query, e.g.,

repositories(orderBy: {field: CREATED_AT, direction: DESC}, first: 10)

But if the user edits "first" in the explorer, it gets translated to an incorrect string in the query, e.g.,

repositories(orderBy: {field: CREATED_AT, direction: DESC}, first: "20")

which generates an "expected type int" error in the query panel and a runtime error when the query is executed.

Expected Behavior:
When typing an integer value in the Explorer pane, generate an integer value in the query pane.