Let's Learn AdonisJS 6: Ep 11.9 - Managed Transactions and Syncing Movie Cast Members

Опубликовано: 16 Октябрь 2024
на канале: Adocasts
120
5

Learn how to sync cast members with a managed transaction

👍 If You Enjoy This Video, Consider Hitting The Like Button!

👨‍💻 Series Source Code: https://github.com/adocasts/lets-lear...

🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...

Subscribe to Adocasts Plus to gain access to all our lessons and more!
https://adocasts.com/pricing

In this lesson, we'll learn how we can use what we learned in the last lesson to also sync our cast members. We'll then extract this functionality into a service and wrap it within a managed database transactions.

⏰ Timestamps
00:00 - Querying the Movies Cast Members
01:24 - Defining Our Cast Member Form Fields
03:45 - Defining Our Cast Member Validations
04:40 - Syncing Our Movie Cast Members
05:40 - Extracting Our Cast and Crew Member Sync into a Service
08:07 - Introducing Managed Database Transactions
11:10 - Fixing Our AlpineJS Loop Keys
11:55 - Testing Our Sync Behavior

------------------------- Socials --------------------------

Website: https://adocasts.com
Threads: https://threads.net/@adocasts
Twitter:   / adocasts  
GitHub: https://github.com/adocasts