Skip to content

Reviews Routes

Get all reviews

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

Example

GET /api/reviews/all

Potential SDL

type Review {
id: Int
product: Int
productSlug: String
name: String
rating: Float
comment: String
}
type Reviews {
data: [Review]
}

Get review by product id

GET /api/reviews/product/:productId

Example