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 182 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!