graphql-routes

Free batching and caching for your GraphQL resolvers

Usage no npm install needed!

<script type="module">
  import graphqlRoutes from 'https://cdn.skypack.dev/graphql-routes';
</script>

README

GraphQL-Routes

This library is created to solve in a generic way the native execution of GraphQL which traverse and invoke your resolvers, mostly creating the N + 1 problem when executing DB queries.

GraphQL-Routes give you a way to map your resolvers to a Controller Class utilizing Batching and Caching for your GraphQL resolvers for free, without restrictions of the business logic implementation. Naturally all the batched resolvers that you define has to return a batched result.

Installation

npm i graphql-routes -S

Working Progress...