Skip to content

example: Fetching data using Apollo client (pages router) #58

Closed
@moonmeister

Description

@moonmeister

Description

Create a tutorial to give a step-by-step guidance on setting up a WordPress powered blog section in Next.js app. Tutorial will teach how to fetch data using Apollo Client and present it with Next.js pages router in the context of a common, real-world use case.

Key Topics to Cover

  • Fetching list of blog posts using Apollo Client
  • Composing queries with GraphiQL IDE
  • Implementing pagination
  • Fetching and displaying single posts using Next.js pages router dynamic routes

Target Audience

  • Next.js web app owners who want to add blog section and use WordPress to support it
  • Frontend developers who want to get started with headless WordPress

Document Type

This should be a tutorial-style document, teaching basic concepts with tangible results to get started fast. Tutorial will give a working example of blog section in Next.js app, at the same time teaching how to recreate it independently.

Metadata

Metadata

Assignees

Labels

topic:clientRelated to GraphQL clients

Type

No type

Projects

Status

✅ Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions