coryhouse / coryhouse/react-restaurant-scriptpro

Create ratings query factory (getRatingsByFoodId)

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-7-ratings
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Add a query factory for ratings filtered by `foodId`. Seed `db.json` with a few ratings to make the UI realistic.

## Acceptance criteria
- [ ] `getRatingsByFoodIdQueryOptions(foodId)` exported
- [ ] Endpoint returns ratings filtered to one food
- [ ] Response validated with the Zod array schema
- [ ] `db.json` seeded with ratings across multiple foods

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.