.NET Core Rest API - Pagination, Search & Sorting using MongoDB

preview_player
Показать описание

Learn how to filter, paginate and sort using C# with .NET Core & MongoDB. We will compare Frontend and Backend API Filtering with two different API Endpoints. One will be a simple endpoint where you return all the data, the other will be an endpoint where we will apply custom Pagination, Search & Sorting.

This video can be combined with other videos:

Timestamps
00:00 Preview
00:38 Setup
05:04 Connect with MongoDB
10:16 Frontend Endpoint
13:51 Seed the Database
20:32 Backend Endpoint
22:48 Searching Products
26:32 Sorting Products
29:22 Paginating Products

#dotnetcore #csharp #dotnet #mongodb
Рекомендации по теме
Комментарии
Автор

It would be great to add an example of passing a field to sort from the frontend, because now it looks like a hard-coded one sorting by Price

EasyChampInc
Автор

Good tutorial, would be better if it was generic, with this the data object will have to defined.

emmanuel
visit shbcf.ru