AEB-labs / graphql-weaver

A tool to combine, link and transform GraphQL schemas
MIT License
240 stars 20 forks source link

Fixes issue 20 #21

Closed qiuyuzhou closed 6 years ago

qiuyuzhou commented 6 years ago

Avoid transform number 0 to false when process the custom scalar type value.

qiuyuzhou commented 6 years ago

Fixes #20

Yogu commented 6 years ago

Thanks for your pull request! I dug a little deeper into the problem and fixed in #24. As far as I can see, there is no need to default back to false at all. Additionally, parseLiteral turned out to need a totally different implementation. Therefore, I guess we'll just merge #24.