Setting up mercurius with fastify, auth, and cache over redis is very simple in a vanilla project, but then we have much bigger problems that nest looks to solve. As someone new coming in, though, it is quite hard at the moment to imagine what the nest way of doing it is.
- it seems we must collect all cache instructions at the root, which would imply knowing ahead of time everything about our application. Moreover, each module could be served separately over any network protocol - maybe in that case it is easier because they could be cached centrally within themselves and that is ok because their domain is small enough that it does not matter that you centralise these instructions in each service?
- graphql-shield is a similar pattern for authorization with similar patterns, so I am looking at mercurius auth instead but the abundance of nest's pipes and validators and guards is a little overwhelming at the moment. Are they to be used, wrapped around mercurius auth, or what is the deal?
I hope I'm making my current state clear - it is of excitement at what nest helps me solve, but also the relative aimlesness when it comes to some of these decisions. A well pointed finger here could really save me months - I am sure most that read here could relate to the feeling so if you know something.. Have mercy and spill a bean 😉