GraphQL Interceptor
Intercepts all upper level resolvers on a graphql-js server. Useful for logging, metrics, modify responses, etc.
Forked from https://github.com/kadirahq/graphql-errors
const express = ;const GraphQLSchema GraphQLObjectType GraphQLString = ;const graphqlHTTP = ;const interceptResolvers = ;const schema =query:name: 'RootQueryType'fields:test:type: GraphQLString{throw 'it failed';};{console}{console}// wrap upper level resolvers;const app = ;app;app;