ResolverSetAll
resolversetAll is a function used to manage the set of resolver mappings within a resolver registry. It replaces the current collection of resolvers with a complete new set provided by the caller. This operation is typically designed to be atomic, ensuring that the resolver state is not observed in a partially updated form during the change.
In typical use, resolversetAll takes a single argument: newResolvers, a mapping from resolver names (or keys)
Return value and side effects can vary by implementation. In many designs, resolversetAll returns the previous
Usage considerations include thread safety and consistency, especially in environments that support hot-reloading or dynamic reconfiguration.
Example usage: resolversetAll({ user: resolveUser, article: resolveArticle }) would replace the current resolver mappings with the provided