NestJs REST API with MongoDB #2 - Add Pagination & Search
Вставка
- Опубліковано 4 жов 2024
- Final Code:
github.com/ghu...
Complete In-Depth NestJs UDEMY Courses:
www.udemy.com/...
⚙️ Gadgets I use for Recording:
💻 Laptop - Macbook PRO M1 - 16/512
amzn.to/4eUqrSe
🎤 MIC - Samson Technologies Q2U USB/XLR Dynamic Microphone
amzn.to/3W9Z4wl
🖱️Mouse - Logitech G402 Gaming Mouse Hyperion Fury USB, Black
amzn.to/3RY4xUy
⌨️ Keyboard - Logitech K380 Multi-Device Bluetooth Keyboard
amzn.to/3RY4Fn0
🖥️ Monitor - UltraSharp 24-Inch Screen Led-Lit Monitor (U2419H)
amzn.to/4bxidN6
In this video, we will learn how we can add pagination and search functionality in our NestJS API. In my previous video, I created a complete CRUD Library API.
In this video, we will continue with that project and add the pagination and the search functionality in this API in simple few steps.
If you like this video make sure to subscribe and share, and stay tuned for more coding videos.
Your content is fantastic! Your way of speaking is also perfect anyone can understand easily
Ofcourse best tutorial, i have evern seen
thanks dude
The second one! Cheers man!
Thanks! This video helped me.
Thanks brother for the tutorial.
For some reason I'm getting this error.
Cannot find module 'express-serve-static-core' or its corresponding type declarations.
Line: import { Query } from 'express-serve-static-core';
[Update]
Fixed: by installing `@types/express-serve-static-core`
try this...
import { ParsedUrlQuery } from 'node:querystring';
async getAll(@Query() query: ParsedUrlQuery): Promise {
return this.bookService.findAll(query);
}
Great content.
Sir , we have implemented skip but have not used it yet
We have used that to skip documents of pervious page.
@@codingwithabbas ok sir , got it
Thank you
thanks bro, do you think is better working with nextjs ou angular ?
If you consider syntax, Angular is much closer to Nest. However, both are fine.
I still don't understand skip variables logic
If we have 5 results per page and when we go to page no 2, we have skip first 5 items (books in this case), that why we we need to calculate that.
Thank you very much ❤ I get it now