blog-fs/commons/graphql/queries.ts
2021-05-02 20:04:54 +08:00

24 lines
326 B
TypeScript

import gql from "graphql-tag";
export const ARTICLE_FOR_HOME = gql`
query ArticlesForHome {
articles {
id
title
content
publishedAt
}
}
`;
export const ARTICLE = gql`
query Article($id: String!) {
article(id: $id) {
id
title
content
publishedAt
}
}
`;