mercurius-js / cache

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

fix: validate mercurius is already registered #40

Closed TomasTM closed 2 years ago

TomasTM commented 2 years ago

@simone-sanfratello as per Simone's instructions:

we should use fastify's plugin mechanism to do this, exposed by fastify-plugin.

I made this quick change. please let me know your thoughts

simone-sanfratello commented 2 years ago

lgtm

simoneb commented 2 years ago

@TomasTM let's link this PR to the original issue and include the other changes as well please.