- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
EXCURSIONS: Advanced Data Access Patterns in Payload CMS
In our first "excursion" I take you through how I like to stay organized and "DRY" (Don't Repeat Yourself) in a Payload CMS app. One important thing to consider is how you access data in your app, whether that is through Payload's local API or the REST API. I first think about the common patterns I want to use in any given app. Patterns that the Payload local API does not concern itself with. For example, in a blog, you will likely need to get a post by the slug found in the URL. If your app is small or you are just working on a prototype, you don't need to abstract that into its own function, you can just use a normal WHERE clause on the local API to find any posts that have that slug, then just return the first one. As your app grows, you may find that this pattern shows itself a couple more times- maybe you have a product page that needs to be retrieved by slug. This is what the Repository pattern is designed to help you with. There is nothing special about the concept. Depending on your needs, your repository can simply be a set of functions you keep in a lib folder. For the above example, you might have a function called getPostBySlug or getProductBySlug, and those would just query Payload in the normal way. You now have a Repository. In this video, we are going to take that a few steps further and for good reason as you will see.
As I've been building the Tenn Home Real Estate project, I've been implementing some advanced patterns that are fascinating and really valuable but I don't have a lot of time to explain them in more detail. If I did, we would never be able to get through it.
So I created Excursions for exactly this - deep dives into these topics that go beyond the larger projects. Each Excursion stands alone. You don't need to follow the real estate series (or other big projects we have planned) to get value from these. They're designed to enhance your skills regardless of what you're currently building.
------------
*Demo code*
https://github.com/LearnPayload/excursions-advanced-data-access
*Checkout the on going real estate project*
https://www.youtube.com/playlist?list=PLUVxYuirWg3fTYHkq8eR-Z2aGVBxSvSNu
------------
*Channel summary*
Hello, I'm Colyn and welcome to my channel, Learn Payload with Colyn. Here, I'm documenting my path to building and deploying my first production ready SaaS app using Payload CMS.
Видео EXCURSIONS: Advanced Data Access Patterns in Payload CMS канала Learn Payload with Colyn
As I've been building the Tenn Home Real Estate project, I've been implementing some advanced patterns that are fascinating and really valuable but I don't have a lot of time to explain them in more detail. If I did, we would never be able to get through it.
So I created Excursions for exactly this - deep dives into these topics that go beyond the larger projects. Each Excursion stands alone. You don't need to follow the real estate series (or other big projects we have planned) to get value from these. They're designed to enhance your skills regardless of what you're currently building.
------------
*Demo code*
https://github.com/LearnPayload/excursions-advanced-data-access
*Checkout the on going real estate project*
https://www.youtube.com/playlist?list=PLUVxYuirWg3fTYHkq8eR-Z2aGVBxSvSNu
------------
*Channel summary*
Hello, I'm Colyn and welcome to my channel, Learn Payload with Colyn. Here, I'm documenting my path to building and deploying my first production ready SaaS app using Payload CMS.
Видео EXCURSIONS: Advanced Data Access Patterns in Payload CMS канала Learn Payload with Colyn
Комментарии отсутствуют
Информация о видео
10 июня 2025 г. 2:41:42
01:08:17
Другие видео канала





















