Using #graphqlgen for our cloud stack
▻https://hackernoon.com/using-graphqlgen-for-our-cloud-stack-ae30c4b017a1?source=rss----3a8144ea
TL;DR — Apollo Server & Typescript ⇒ graphqlgenAt Meeshkan, we were writing our own typescript interfaces for JS object representations of our #graphql schema, which proved to be error-prone and laborious.The new graphqlgen package by Prisma makes that crazy easy, but if you are not comfortable with GraphQL schemas yet, it can feel like another layer of incomprehension in an already incomprehensible stack. I wanted to take a moment to share a few key learnings from working with this new tool in case you are struggling to get started:How resolvers in Apollo Server actually work.Why graphqlgen is awesome.Why you should never use prisma types for your server’s schema’s types.Bonus: How to unit your test resolvers.How resolvers work in Apollo ServerBefore you can work with graphqlgen (...)