title: Accessing metadata from NestJS controllers
body: <p>is there a way to access metadata from controller methods?</p>
  <p>For example, I add metadata to a controller class with SetMetadata() - e.g. from a decorator.</p>
  <p>I know how to access metadata in a guard. You need to inject reflector and guard.canActivate() has ExecutionContext parameter.</p>
  <pre><code>canActivate(context: ExecutionContext): boolean {
    metadata: SomeType = this.reflector.get&lt;EnabledFeatures&gt;(SOME_METADATA_KEY, [context.getClass()]);
  }
  </code></pre>
  <p>To get metadata I need 2 components: Reflector and ExecutionContext.
  I can inject Reflector into controller, but how can I access ExecutionContext from a controller?</p>