Put in order · NestJS course · Module 3: TypeORM and Databases
Destructuring findAndCount
Arrange the elements of destructuring the findAndCount result:
Items to put in order
- = await
- const [items, total]
- this.repo.findAndCount(options)
You can check the correct answer by solving this task in the CodeWorlds game.