mobilizon.chapril.org-mobil.../js/src/graphql/tags.ts
Thomas Citharel ee20e03cc2
Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-11 16:46:31 +02:00

31 lines
433 B
TypeScript

import gql from "graphql-tag";
export const TAG_FRAGMENT = gql`
fragment TagFragment on Tag {
id
slug
title
}
`;
export const TAGS = gql`
query Tags {
tags {
related {
...TagFragment
}
...TagFragment
}
}
${TAG_FRAGMENT}
`;
export const FILTER_TAGS = gql`
query FilterTags($filter: String!) {
tags(filter: $filter) {
...TagFragment
}
}
${TAG_FRAGMENT}
`;