MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / count

Function count

packages/hydrooj/src/model/document.ts:171–175  ·  view source on GitHub ↗
(
    domainId: string, docType: K, query?: Filter<DocType[K]>,
)

Source from the content-addressed store, hash-verified

169}
170
171export function count<K extends keyof DocType>(
172 domainId: string, docType: K, query?: Filter<DocType[K]>,
173) {
174 return coll.countDocuments({ ...query, docType, domainId });
175}
176
177export function countStatus<K extends keyof DocStatusType>(
178 domainId: string, docType: K, query?: Filter<DocStatusType[K]>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected