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

Method getMulti

packages/hydrooj/src/model/solution.ts:42–47  ·  view source on GitHub ↗
(domainId: string, pid: number, query: any = {})

Source from the content-addressed store, hash-verified

40 }
41
42 static getMulti(domainId: string, pid: number, query: any = {}) {
43 return document.getMulti(
44 domainId, document.TYPE_PROBLEM_SOLUTION,
45 { parentType: document.TYPE_PROBLEM, parentId: pid, ...query },
46 ).sort({ vote: -1 });
47 }
48
49 static getByUser(domainId: string, uid: number) {
50 return document.getMulti(

Callers 3

getManyMethod · 0.45
getByUserMethod · 0.45
solution.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected