-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom scalar type #3
Comments
It's not yet possible. Good suggestion though. |
Not sure it is formally defined anywhere, but reading through the tutorial, I see the syntax we could use to represent it in the schema language. http://graphql.org/learn/schema/#scalar-types
|
Good to know, thanks! I'll definitely add this option at some point. |
Thank you. that looks great and terse. cheers. Hopefully the builder interface would be expanded to build the schema programmatically, not just through string. thanks again. |
@bsr203 Please take a look at d803549. This is a new approach for custom types. It decouples the GraphQL declaration of the type ( |
@neelance from the user perspective it looks cleaner, and with all the added benefits you listed, definitely +1. Thank you also for the great learning opportunity by looking through how you evolve the API. |
Revert "Use a buffer pool for field buffers"
Is it possible to define and register a custom scalar type.
http://graphql.org/graphql-js/type/#graphqlscalartype
In graphql-go, I do it like,
The text was updated successfully, but these errors were encountered: