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

Method count

packages/hydrooj/src/model/message.ts:60–62  ·  view source on GitHub ↗
(query: Filter<MessageDoc> = {})

Source from the content-addressed store, hash-verified

58
59 @ArgMethod
60 static count(query: Filter<MessageDoc> = {}) {
61 return MessageModel.coll.countDocuments(query);
62 }
63
64 static getMulti(uid: number) {
65 return MessageModel.coll.find({ $or: [{ from: uid }, { to: uid }] });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected