NarHakobyan/awesome-nest-boilerplate

How to using ApiConfigService in DTO class?

vietlait opened this issue · 1 comments

I want to use the ApiConfigService to get some environment variables at the constructor of DTO classes.
But when injecting in the constructor it doesn't work.
What should I do?

@vyvian1712 you cannot inject services into DTO class.