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

Use generics to avoid context casting

Open Ragmaanir opened this issue 8 years ago • 1 comments

Hi, im using your shard in a private project and so far it works great (errors in fields are little difficult to track down though). A thing that is a bit annoying is the casting of the context in every field. Would it be possible to make the Schema-class or the ObjectType-class generics so one does not need to cast the context?

Ragmaanir avatar Dec 13 '17 22:12 Ragmaanir

hey, sorry for the late answer. I will look into this as soon as I fix the shard (and more importantly it's dependency cltk) for the latest crystal release (0.24.1).

ziprandom avatar Dec 27 '17 14:12 ziprandom