dphaener / typed-api

A GraphQL server built on dry-type and Sinatra
MIT License
1 stars 0 forks source link

Custom type coercion #2

Open dphaener opened 7 years ago

dphaener commented 7 years ago

The GraphQL gem leaves a lot to be desired when it comes to type coercion, and likely for good reason. We can likely tie into the middleware: https://rmosolgo.github.io/graphql-ruby/schema/configuration_options#type-error-handling to provide better type coercion using dry-rb

dphaener commented 7 years ago

Also, possibly simply using middleware: https://rmosolgo.github.io/graphql-ruby/schema/configuration_options#middleware