graphql / graphql.github.io

GraphQL Documentation at graphql.org
https://graphql.org
MIT License
832 stars 1.42k forks source link

graphql.js custom scalar type docs are very vague #163

Open msakrejda opened 7 years ago

msakrejda commented 7 years ago

I was trying to create a custom scalar type by reading the docs, but what's there is very vague and confusing:

I think the GraphQL docs are fantastic overall, but this section was not clear at all.

stubailo commented 7 years ago

We have three examples with graphql-tools here: http://dev.apollodata.com/tools/graphql-tools/scalars.html

The syntax is a bit different, but the functions are the same. Perhaps we can move those docs to the graphql-js docs here.

msakrejda commented 7 years ago

Yes, I think that would be great. That page doesn't describe the semantics of these methods, though (except for some one-liner comments). A short blurb on that for each method would be really helpful.