mercurius-js / cache

Adds an in-process caching layer to Mercurius. Federation is fully supported.
MIT License
106 stars 19 forks source link

Refactored Error handling #77

Closed sameer-coder closed 2 years ago

sameer-coder commented 2 years ago

This PR tries to simplify the error handling in the code. I have tried to split the different conditionals into separate functions so that the code is more readable. Added some tests to ensure we cover all cases and coverage is 💯

Closes #76