2021-01-20 18:16:44 +01:00
|
|
|
import gql from "graphql-tag";
|
|
|
|
|
|
|
|
export const GROUP_FOLLOWERS = gql`
|
2021-05-17 19:01:08 +02:00
|
|
|
query (
|
2021-01-20 18:16:44 +01:00
|
|
|
$name: String!
|
|
|
|
$followersPage: Int
|
|
|
|
$followersLimit: Int
|
|
|
|
$approved: Boolean
|
|
|
|
) {
|
|
|
|
group(preferredUsername: $name) {
|
|
|
|
id
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
domain
|
|
|
|
followers(
|
|
|
|
page: $followersPage
|
|
|
|
limit: $followersLimit
|
|
|
|
approved: $approved
|
|
|
|
) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
domain
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
approved
|
|
|
|
insertedAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const UPDATE_FOLLOWER = gql`
|
|
|
|
mutation UpdateFollower($id: ID!, $approved: Boolean) {
|
|
|
|
updateFollower(id: $id, approved: $approved) {
|
|
|
|
id
|
|
|
|
approved
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|