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

Function mutateUserInfo

packages/shared/src/graphql/users.ts:477–489  ·  view source on GitHub ↗
(
  data: Partial<UserProfile>,
  upload?: File | null,
  coverUpload?: File | null,
)

Source from the content-addressed store, hash-verified

475};
476
477export const mutateUserInfo = async (
478 data: Partial<UserProfile>,
479 upload?: File | null,
480 coverUpload?: File | null,
481) => {
482 const res = await gqlClient.request(UPDATE_USER_INFO_MUTATION, {
483 data,
484 upload,
485 coverUpload,
486 });
487
488 return res.updateUserInfo;
489};
490
491export const UPLOAD_COVER_MUTATION = gql`
492 mutation UploadCoverImage($upload: Upload!) {

Callers 2

useUserInfoFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected