Propagating errors to the client in production

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 INTERNAL_SERVER_ERROR with 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.

Figured it out… GraphQL Shield catches all errors by default and custom errors should be returned not thrown… Errors - GraphQL Shield