mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
40 lines
559 B
JavaScript
40 lines
559 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export const BlockedUsers = () => {
|
|
return gql(`
|
|
{
|
|
blockedUsers {
|
|
id
|
|
name
|
|
slug
|
|
avatar
|
|
about
|
|
disabled
|
|
deleted
|
|
}
|
|
}
|
|
`)
|
|
}
|
|
|
|
export const Block = () => {
|
|
return gql(`mutation($id:ID!) {
|
|
block(id: $id) {
|
|
id
|
|
name
|
|
isBlocked
|
|
followedByCurrentUser
|
|
}
|
|
}`)
|
|
}
|
|
|
|
export const Unblock = () => {
|
|
return gql(`mutation($id:ID!) {
|
|
unblock(id: $id) {
|
|
id
|
|
name
|
|
isBlocked
|
|
followedByCurrentUser
|
|
}
|
|
}`)
|
|
}
|