feat: add user profile settings tab
This commit is contained in:
@ -3,6 +3,9 @@ query me {
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
username
|
||||
email
|
||||
bio
|
||||
profileIcon {
|
||||
initials
|
||||
bgColor
|
||||
|
@ -24,6 +24,7 @@ export const CREATE_USER_MUTATION = gql`
|
||||
fullName
|
||||
initials
|
||||
username
|
||||
bio
|
||||
profileIcon {
|
||||
url
|
||||
initials
|
||||
|
19
frontend/src/shared/graphql/user/updateUserInfo.ts
Normal file
19
frontend/src/shared/graphql/user/updateUserInfo.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const UPDATE_USER_INFO_MUTATION = gql`
|
||||
mutation updateUserInfo($name: String!, $initials: String!, $email: String!, $bio: String!) {
|
||||
updateUserInfo(input: { name: $name, initials: $initials, email: $email, bio: $bio }) {
|
||||
user {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
bio
|
||||
profileIcon {
|
||||
initials
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default UPDATE_USER_INFO_MUTATION;
|
Reference in New Issue
Block a user