graphql-go icon indicating copy to clipboard operation
graphql-go copied to clipboard

Create custom scalar types?

Open ulm0 opened this issue 8 years ago • 1 comments

I'm struggling with this right now. Bu I can't figure it out...what would be the best approach to create custom scalar types?

ulm0 avatar Sep 23 '17 17:09 ulm0

If you look at the time file, it shows how to implement your own scalar type.

Basically need to implement func (_ customType) ImplementsGraphQLType(name string) bool func (c *custoType) UnmarshalGraphQL(input interface{}) error

jimtsao avatar Oct 17 '17 14:10 jimtsao