import logger from 'common/logger' ; export const sentryMiddleware = async ( resolve , root , args , context , info ) => { try { const result = await resolve ( root , args , context , info ) ; return result ; } catch ( error ) { logger . error ( error ) ; throw error ; } } ;