MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / fetchProjectCohorts

Function fetchProjectCohorts

packages/db/src/services/chart.service.ts:177–184  ·  view source on GitHub ↗
(
  projectId: string,
)

Source from the content-addressed store, hash-verified

175}
176
177export async function fetchProjectCohorts(
178 projectId: string,
179): Promise<CohortMetadata[]> {
180 return db.cohort.findMany({
181 where: { projectId },
182 select: { id: true, name: true },
183 });
184}
185
186export function buildAllCohortsMembershipQuery(
187 projectId: string,

Callers 2

getChartSqlFunction · 0.85
getAggregateChartSqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected