OneGraph / graphiql-explorer

Explorer plugin for GraphiQL
MIT License
904 stars 97 forks source link

Integer arguments get converted into strings #8

Closed sgrove closed 5 years ago

sgrove commented 5 years ago

Try this query in OneGraphiQL:

{
  gitHub {
    user(login: "sgrove") {
      repositories(first: 10) {
        nodes {
          name
          issues(
            orderBy: { direction: DESC, field: CREATED_AT }
            first: 0
          ) {
            nodes {
              title
            }
          }
        }
      }
    }
  }
}

If you update either of the integer arguments in the explorer, they'll be converted into strings in the query document (which will be an invalid query)

dwwoelfel commented 5 years ago

Fixed by https://github.com/OneGraph/graphiql-explorer/commit/904f904c79841f1c5c183000489cfc24c1146a58

Please upgrade to v0.3.7 to get the fix.