NestJS · Junior · Question 46 of 75

How do you use Prisma in Nest?

Explanation

The service can connect in onModuleInit. Export it from a PrismaModule so feature modules can import it.

Further reading

Problem with a question

NestJS · Junior · question 46

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz