Closed davidlhw closed 4 months ago
An endpoint to retrieve reviews with pagination
retrieve a list of reviews, given trpc input like
input( z.object({ body: z.string(), tips: z.string().optional(), rating: z.number(), reviewedUniversityId: z.number(), reviewedCourseId: z.string(), reviewedProfessorId: z.string().optional(), reviewerId: z.string(), reviewLabelIds: z.array(z.number()).optional(), }), )
This should be a private procedure and requires users to be signed in to be able to retrieve reviews.
trpc protected procedures - see documentation for implementation example and details
Features
An endpoint to retrieve reviews with pagination
Core
retrieve a list of reviews, given trpc input like
Implementation
This should be a private procedure and requires users to be signed in to be able to retrieve reviews.
Potential Issues
trpc protected procedures - see documentation for implementation example and details