K
K
Konstantin2020-05-30 02:55:03
Node.js
Konstantin, 2020-05-30 02:55:03

How does the @InjectModel decorator work in NestJS?

How does the @InjectModel decorator work in NestJS?

How and in what cases to use it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-05-30
@Junart1

- just like all the other decorators for injecting something into nestjs. Or do you have a question about how, in principle, this is all arranged in nestjs?
- use as shown in the docs, when you need the corresponding model somewhere in the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question