Update graphql types and mutations

This commit is contained in:
Hazem Krimi
2021-05-02 03:57:43 +01:00
parent 6bcb9a67a2
commit 6e416bcc9c
2 changed files with 120 additions and 23 deletions
+53 -6
View File
@@ -18,7 +18,6 @@ export const SIGNUP = gql`
country
zip
}
active
role
}
token
@@ -44,7 +43,6 @@ export const LOGIN = gql`
country
zip
}
active
role
}
token
@@ -69,7 +67,6 @@ export const RESET_PASSWORD = gql`
country
zip
}
active
role
}
}
@@ -92,7 +89,6 @@ export const CONFIRM_USER_RESET_PASSWORD = gql`
country
zip
}
active
role
}
}
@@ -129,7 +125,6 @@ export const UPDATE_USER_INFO = gql`
country
zip
}
active
role
}
}
@@ -152,8 +147,60 @@ export const UPDATE_USER_PASSWORD = gql`
country
zip
}
active
role
}
}
`;
export const DELETE_USER = gql`
mutation DeleteUser($id: String!, $password: String!) {
deleteUser(id: $id, password: $password) {
id
email
firstName
lastName
phone {
prefix
number
}
address {
place
city
country
zip
}
role
}
}
`;
export const GET_USER_BY_ID = gql`
query GetUserById($id: String!) {
getUserById(id: $id) {
id
email
firstName
lastName
phone {
prefix
number
}
address {
place
city
country
zip
}
role
}
}
`;
export const GET_COUNTRY_CODES = gql`
query GetCountryCodes {
getCountryCode {
prefix
country
}
}
`;