title: In Nest.js, how to get a service instance inside a decorator?
body: <p>In <code>CustomDecorator</code>, how to access a service instance defined in Nest.js?</p>
  
  
  
  <pre><code>export const CustomDecorator = (): MethodDecorator =&gt; {
    return (
      target: Object,
      propertyKey: string | symbol,
      descriptor: PropertyDescriptor
      ) =&gt; {
  
      // Here, is possibile to access a Nest.js service (i.e. TestService) instance?
  
      return descriptor;
    }
  };
  </code></pre>