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

Method getMany

packages/hydrooj/src/model/solution.ts:20–25  ·  view source on GitHub ↗
(domainId: string, query: any, sort: any, page: number, limit: number)

Source from the content-addressed store, hash-verified

18 }
19
20 static getMany(domainId: string, query: any, sort: any, page: number, limit: number) {
21 return document.getMulti(domainId, document.TYPE_PROBLEM_SOLUTION, query)
22 .sort(sort)
23 .skip((page - 1) * limit).limit(limit)
24 .toArray();
25 }
26
27 static edit(domainId: string, psid: ObjectId, content: string) {
28 return document.set(domainId, document.TYPE_PROBLEM_SOLUTION, psid, { content });

Callers

nothing calls this directly

Calls 1

getMultiMethod · 0.45

Tested by

no test coverage detected