pgutkowski / KGraphQL

Pure Kotlin GraphQL implementation
MIT License
286 stars 82 forks source link

Quotes within argument string not supported #24

Closed deepakyadav closed 6 years ago

deepakyadav commented 6 years ago

If value for a parameter contains escaped quoted, then the query fails because of failure in parsing the request. The error varies depending on what follows the quoted value, I think quotes are not handled properly: https://github.com/pgutkowski/KGraphQL/blob/master/src/main/kotlin/com/github/pgutkowski/kgraphql/request/RequestPreProcessing.kt#L24

Example:

{
     hello(name : "Ted\" Mosby")
}

However, passing such strings using query variables works perfectly fine.

pgutkowski commented 6 years ago

Hi @deepakyadav!

Thank you for reporting this issue, issue has been fixed in new version 0.2.8.