mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
24 lines
365 B
JavaScript
24 lines
365 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export const FetchAllRoles = () => {
|
|
return gql`
|
|
query {
|
|
availableRoles
|
|
}
|
|
`
|
|
}
|
|
|
|
export const updateUserRole = (role, id) => {
|
|
return gql`
|
|
mutation($role: UserRole!, $id: ID!) {
|
|
switchUserRole(role: $role, id: $id) {
|
|
name
|
|
role
|
|
id
|
|
updatedAt
|
|
email
|
|
}
|
|
}
|
|
`
|
|
}
|