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

Function getUserExperiencesByType

packages/shared/src/graphql/user/profile.ts:277–287  ·  view source on GitHub ↗
(
  userId: string,
  type: UserExperienceType,
  first = 100,
)

Source from the content-addressed store, hash-verified

275`;
276
277export const getUserExperiencesByType = async (
278 userId: string,
279 type: UserExperienceType,
280 first = 100,
281): Promise<Connection<UserExperience>> => {
282 const result = await gqlClient.request<{
283 userExperiences: Connection<UserExperience>;
284 }>(USER_EXPERIENCES_BY_TYPE_QUERY, { userId, type, first });
285
286 return result.userExperiences;
287};
288
289const UPSERT_USER_GENERAL_EXPERIENCE = gql`
290 mutation UpsertUserGeneralExperience(

Callers 1

useUserExperiencesByTypeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected