Put in order · NestJS course · Module 1: NestJS Basics
Validation with Joi Schema
Arrange the elements of the Joi schema validation for the PORT variable:
Items to put in order
- PORT:
- .default(3000)
- Joi.number()
Show the answer
Correct order:
- PORT:
- Joi.number()
- .default(3000)