So basically I have apollo-server-micro set up with nexus to create the schema and graphql-shield for validation. In development all errors are properly sent to the client. In production though, this is not the case and errors thrown from my resolvers aren’t being sent to the client properly and are always received on the client as
message: "Not Authorized!" even if error is an instance of
ApolloError. Oddly enough validation errors thrown from graphql-shield are always received on the client with their respective types and messages.
Any possible help here is extremely appreciated.