DEV Community

loading...

Discussion on: Setting up Apollo GraphQL in Next.js with Server Side Rendering.

Collapse
terchris profile image
Terje Christensen

Thanks for the example.
I have a simple question I can't figure out. How do I set up a [id].js page so that I can use the id to make a query ?

Collapse
angad777 profile image
Angad Gupta Author

Welcome Terje, You can setup dynamic routing using this : nextjs.org/docs/routing/dynamic-ro...