How to Inject a service into Guard / Pipe / Interceptor / Middleware in NestJS?

Beginners learning NestJS (especially without Angular background) often find it confusing how to inject a service into a pipe, interceptor…