2019-03-21 19:23:42 +00:00
|
|
|
import gql from 'graphql-tag';
|
|
|
|
|
|
|
|
export const LOGGED_PERSON = gql`
|
|
|
|
query {
|
|
|
|
loggedPerson {
|
|
|
|
id,
|
2019-05-22 12:12:11 +00:00
|
|
|
avatar {
|
|
|
|
url
|
|
|
|
},
|
2019-03-21 19:23:42 +00:00
|
|
|
preferredUsername,
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
export const CREATE_FEED_TOKEN_ACTOR = gql`
|
|
|
|
mutation createFeedToken($actor_id: Int!) {
|
2019-05-22 12:12:11 +00:00
|
|
|
createFeedToken(actorId: $actor_id) {
|
2019-03-21 19:23:42 +00:00
|
|
|
token,
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
},
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
export const CREATE_FEED_TOKEN = gql`
|
|
|
|
mutation {
|
|
|
|
createFeedToken {
|
|
|
|
token,
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
},
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
export const DELETE_FEED_TOKEN = gql`
|
|
|
|
mutation deleteFeedToken($token: String!) {
|
|
|
|
deleteFeedToken(token: $token) {
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
},
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|