title: How to get request query parameters in interceptor
body: <p>I am developing a Nest.js project.</p>
  <p>I have a interceptor which simply logs request parameters:</p>
  <pre><code>@Injectable()
  export class MyRequestInterceptor implements NestInterceptor {
    constructor(private logger: MyLogger) {}
  
    intercept(context: ExecutionContext, next: CallHandler): Observable&lt;string&gt; {
      const http = context.switchToHttp();
      const request = http.getRequest();
      const params = request.params;
  
      // output is {}, no parameters showing
      this.logger.info(JSON.stringify(params)); 
  
      return next.handle()
    }
  }
  </code></pre>
  <p>When I send request <code>GET http://localhost:9001/data?foo=1,2</code>, I expect to see log for <code>foo=1,2</code> but I see empty object <code>{}</code>.  So, where am I wrong? How to access query parameters of request in Nest.js interceptor?</p>