Question · NestJS course · Module 2: Routing and Request Lifecycle

Introduction: Built-in ParseIntPipe

What does ParseIntPipe do in NestJS?

Answer options

  • Converts a string to an integer or throws an exception
  • Parses JSON into an object
  • Converts a boolean to a string
  • Parses a date into a timestamp
Show the answer

Correct answer:

  • Converts a string to an integer or throws an exception