I very sporadically get errors in my project's tests "error.originalError.errors.map is not a function"
which I've traced back to here in mercurius. could easily do a PR do add Array.isArray()
there but this might hint at something else (me?) passing the wrong args to defaultErrorFormatter