Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clintonwoo/hackernews-react-graphql
/ getUser
Method
getUser
server/database/database.ts:212–214 ·
view source on GitHub ↗
(id: string)
Source
from the content-addressed store, hash-verified
210
/* BEGIN USERS */
211
212
getUser(id: string): UserModel | undefined {
213
return
sampleData.users.find((user) => user.id === id);
214
}
215
216
getUsers(): UserModel[] {
217
return
sampleData.users;
Callers
1
hideNewsItem
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected