Question from the Nest.js test

Explain the use of the @Optional() decorator in Nest.

Easy

Why and when would you use the @Optional() decorator when injecting dependencies?

Author: AxelStatus: PublishedQuestion passed 350 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!