MCPcopy Create free account
hub / github.com/clintonwoo/hackernews-react-graphql / getComment

Method getComment

server/database/cache.ts:75–77  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

73 /* BEGIN COMMENTS */
74
75 getComment(id: number): CommentModel | undefined {
76 return this.commentCache.get(id.toString());
77 }
78
79 setComment(id: number, comment: CommentModel): CommentModel {
80 this.commentCache.set(comment.id.toString(), comment);

Callers 1

commentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected