ben40d9/ecom-nextjs

GraphQL queries for individual product API routes

Opened this issue · 0 comments

We need a wildcard API endpoint in our nextjs app that can return the product data associated with whatever slug we pass it.

e.g. https://yourwebsite.com/api/products/:id takes any valid item ID, runs a query, and returns the associated data.