Intercepting Apollo graphql validation error via RHAI scripta

I have recently created a self hosted apollo router service in an eks pod, now everything seems to be working fine, the req and res are coming properly as expected. But the apollo router is sending very generic error message in case of graphql validation error. Now I want to intercept the validation error and capture the error via RHAI scripts.

      fn router_service(service) {
        service.map_request(|request| {
          // Log full request event from Gloo Gateway
          log_info(`[ROUTER_EVENT] method=${request.method} uri=${request.uri} headers=${request.headers}`);
        });
      }
      
      fn subgraph_service(service, subgraph) {
        service.map_request(|request| {
          // Log full subgraph request event
          log_info(`[SUBGRAPH_EVENT] subgraph=${subgraph} query=${request.subgraph.body.query} headers=${request.subgraph.headers}`);
        });
      }

I am able to get the logs for successful graphql requests but in case of validation errors I am not able to intercept the logs. Is there a better ref of RHAI scripts available so that I can override some rust function to get the error in RHAI