46:30Fetching Data
The talk explains how Next.js applications can fetch data using API routes, client-side fetching with SWR, and GraphQL. It covers why custom servers can limit serverless deployment and static optimization, then demonstrates API routes and SWR for loading and refreshing client-side data. The speaker introduces GraphQL queries and mutations and shows how Hasura generates a GraphQL API over a PostgreSQL database. A Day Drink application illustrates querying and updating data with Apollo Client, including updating its cache after a mutation.