26 lines
412 B
TypeScript
26 lines
412 B
TypeScript
import { gql } from "@apollo/client";
|
|
|
|
export const ARTICLE = gql`
|
|
query Article($id: String!) {
|
|
article(id: $id) {
|
|
id
|
|
title
|
|
content
|
|
publishedAt
|
|
}
|
|
}
|
|
`;
|
|
export const ARTICLES = gql`
|
|
query Articles {
|
|
articles {
|
|
id
|
|
title
|
|
publishedAt
|
|
}
|
|
}
|
|
`;
|
|
export const REMOVE_ARTICLE = gql`
|
|
mutation RemoveArticle($id: String!) {
|
|
removeArticle(id: $id)
|
|
}
|
|
`; |