mobilizon/js/src/graphql/feed_tokens.ts
Thomas Citharel ae027b4e39
Fix GraphQL cache errors because of missing id on some queries
Also moves some queries to cache-and-network policy and improve
typescript a bit

Closes #387

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-21 12:14:53 +02:00

43 lines
617 B
TypeScript

import gql from "graphql-tag";
export const CREATE_FEED_TOKEN_ACTOR = gql`
mutation createFeedToken($actor_id: ID!) {
createFeedToken(actorId: $actor_id) {
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
}
}
}
`;