Skip to content

Products routes

Get all products

A collection of fake product information to import into Hygraph remote sources.

Example

GET /api/products

Potential SDL

type Product {
id: Int
name: String
price: Int
description: String
image: String
category: String
rating: Float
numReviews: Int
countInStock: Int
}
type Products {
data: [Product]
}

Get product by id

GET /api/product/:id

Example