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:

  1. SetMetadata(
  2. 'roles',
  3. roles)