Skip to content

BE 1.0 - Implement get_cohorts function #76

@LeandroHamaguchi

Description

@LeandroHamaguchi

Implement the get_cohorts function to fetch all the cohorts from the database table Cohorts.

Return a list of cohort objects. Use types declared in src/lib/client/supabase/types.ts for more precise return values. Example:

[
{ year: ..., term: ..., is_active: ..., created_at: ..., id: ... },
{ year: ..., term: ..., is_active: ..., created_at: ..., id: ... },
...
]

Implement tests for this function.

Metadata

Metadata

Assignees

Labels

backendthis ticket is part of the backend

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions