MCPcopy Create free account
hub / github.com/dailydotdev/apps / getBasicUserInfo

Function getBasicUserInfo

packages/shared/src/graphql/users.ts:1061–1069  ·  view source on GitHub ↗
(
  userId: string,
)

Source from the content-addressed store, hash-verified

1059`;
1060
1061export const getBasicUserInfo = async (
1062 userId: string,
1063): Promise<UserShortProfile> => {
1064 const res = await gqlClient.request(GET_REFERRING_USER_QUERY, {
1065 id: userId,
1066 });
1067
1068 return res.user || null;
1069};
1070
1071export const referringUserQueryOptions = (userId: string) => ({
1072 queryKey: generateQueryKey(RequestKey.ReferringUser, undefined, userId),

Callers 2

getServerSidePropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected