Put in order · NestJS course · Module 2: Routing and Request Lifecycle
SetMetadata Invocation
Arrange the elements of a SetMetadata call to set required roles:
Items to put in order
- roles)
- 'roles',
- SetMetadata(
Show the answer
Correct order:
- SetMetadata(
- 'roles',
- roles)