Default value for custom scalar type
As asked by @helfer on graphql-js issue 461, I have written a quick reproduction.
To reproduce, you can give a look on this commit.
hi @denneulin , thanks for reporting! can you please open a PR for a failing test?
nvm, i was able to reproduce using your repo and it turns out to be graphql parser bug..
Actually, this may be something we have to work around in graphql-tools, because there's no way to specify parseLiteral functions in schema language, which is what you'd have to do in order to properly parse the default value.
But then how it suppose to work? Parse gets text..
i think i've found the place the magic happens. https://github.com/graphql/graphql-js/blob/7e8e57b9d13d82a54ecc72cb176baad0452cd564/src/utilities/valueFromAST.js#L113
anyway. i don't see an easy way to workaround this..
and this is the place the defaultValue: false is coming from...
Hey - this hasn't had any discussion in a while, and it's not clear if it's still an issue. Please let me know if it is, but I'm going to close for now.