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

Function upsertUserGeneralExperience

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

Source from the content-addressed store, hash-verified

315`;
316
317export const upsertUserGeneralExperience = async (
318 input: UserExperience,
319 id?: string,
320) => {
321 const cleanedInput = excludeProperties(input, [
322 ...excludedProperties,
323 'skills',
324 'locationId',
325 'locationType',
326 'employmentType',
327 'externalLocationId',
328 'verified',
329 ]);
330 const result = await gqlClient.request(UPSERT_USER_GENERAL_EXPERIENCE, {
331 input: cleanedInput,
332 id,
333 });
334 return result;
335};
336
337const UPSERT_USER_WORK_EXPERIENCE = gql`
338 mutation UpsertUserWorkExperience($input: UserExperienceWorkInput!, $id: ID) {

Callers 1

useUserExperienceFormFunction · 0.90

Calls 1

excludePropertiesFunction · 0.90

Tested by

no test coverage detected