2019-03-21 20:23:42 +01:00
|
|
|
import gql from 'graphql-tag';
|
|
|
|
|
|
|
|
export const LOGGED_PERSON = gql`
|
|
|
|
query {
|
|
|
|
loggedPerson {
|
|
|
|
id,
|
2019-05-22 14:12:11 +02:00
|
|
|
avatar {
|
|
|
|
url
|
|
|
|
},
|
2019-03-21 20:23:42 +01:00
|
|
|
preferredUsername,
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
export const CREATE_FEED_TOKEN_ACTOR = gql`
|
|
|
|
mutation createFeedToken($actor_id: Int!) {
|
2019-05-22 14:12:11 +02:00
|
|
|
createFeedToken(actorId: $actor_id) {
|
2019-03-21 20:23:42 +01: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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|