flâneur — a map of the web's best reading

Learn Next.js: Fetching Data | Next.js

nextjs.org · 1,905 words · saved by 1 readers

Now that you've created and seeded your database, let's discuss the different ways you can fetch data for your application, and choose the most appropriate one for the dashboard overview page. In this chapter... Here are the topics we’ll cover Learn about some approaches to fetching data: APIs, ORMs, SQL, etc. How Server Components help us access our back-end resources more securely. What network waterfalls are. How to implement parallel data fetching using a JavaScript Pattern. APIs are an intermediary layer between your application code and database. There are a few cases where you might use an API: In Next.js, you can create API endpoints using Route Handlers. When you're creating a full-stack application, you'll also need to write logic to interact with your database. For relational databases like Postgres, you can do this with SQL, or an ORM like Prisma . There are a few cases where you have to write database queries: Test your knowledge and see what you’ve just learned. Check y

7 Chapter 7 Fetching Data Now that you've created and seeded your database, let's discuss the different ways you can fetch data for your application, and build out your dashboard overview page. In this chapter... Here are the topics we'll cover Learn about some approaches to fetching data: APIs, ORMs, SQL, etc. How Server Components can help you access back-end resources more securely. What network waterfalls are. How to implement parallel data fetching using a JavaScript Pattern. Choosing how to fetch data API layer APIs are an intermediary layer between your application code and database. Th

Explore this link on the map →

related reading