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

Function upsertUserWorkExperience

packages/shared/src/graphql/user/profile.ts:370–388  ·  view source on GitHub ↗
(
  input: UserExperienceWork,
  id?: string,
)

Source from the content-addressed store, hash-verified

368`;
369
370export const upsertUserWorkExperience = async (
371 input: UserExperienceWork,
372 id?: string,
373) => {
374 const cleanedInput = excludeProperties(input, [
375 ...excludedProperties,
376 'url',
377 'subtitle',
378 'grade',
379 'verified',
380 'repository',
381 ]);
382
383 const result = await gqlClient.request(UPSERT_USER_WORK_EXPERIENCE, {
384 input: cleanedInput,
385 id,
386 });
387 return result;
388};

Callers 1

useUserExperienceFormFunction · 0.90

Calls 1

excludePropertiesFunction · 0.90

Tested by

no test coverage detected