Typing Apollo GraphQL Queries with GraphQL-Zeus
At ecoeats, we use a lot of GraphQL. It is present in every single one of our apps and powers all our interactions with customers, riders and restaurants.
It wouldn't be possible for us to have gotten so much productivity out of GraphQL if it wasn't for
, a library that allows you to compile a Typescript interface for your GraphQL schema and query it from your applications.
Specifically, we use it as a wrapper around Apollo Client. While Zeus does come with its own Fetch-based query client, the types from your schema can be used with any existing GraphQL client. To do this, we use a number of hooks included in