API Reading and Updating – Sending Dynamic Route Parameters from Remix to Prisma
The next challenge in our pet database app is reading and updating specific entries in the database. For that, we use Remix’s dynamic route matcher and the loader parameters to navigate and access entries based on ID. Then we can use Prisma to filter our query with a WHERE clause for the ID. The first video in this series is available here.
Chapters:
0:00 – Introduction
0:47 – Continuing with CRUD: Read & Update
01:11 – Creating a page for Nugget with routes
05:12 – Adding details to Nugget’s page with dynamic data
13:30 – Creating a UI for Nugget’s page
20:00 – Adding “action” function to the database
23:15 – Updating the data in the database
27:05 – Outro & What’s Next
New to Linode? Get started here with a $100 credit!
The code for this project is available here.
Learn more about PostgreSQL here.
Subscribe to get notified of new episodes as they come out.
#Remix #Prisma #Postgres #Linode
Product: Linode, Akamai, Databases, Austin Gil