Return more data in event findAll
Open
backend
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
for every event, return the event owner, every drinkaction, the drink and user for the drinkactions (or whatever data is required for the event feed page)
also return the total number of events in the database (this will be needed to make pagination work.
The returned type should look something like this:
```typescript
{
events: EventDetails[],
count: number
}
```
Contributor guide
Research direction
Start at the event findAll entry point and inspect the EventDetails type or related event-feed code. Confirm which owner, drinkaction, drink, and user data the feed requires, then return the events with a total count matching the requested TypeScript shape.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100