blog-fs/commons/graphql/queries.ts

25 lines
345 B
TypeScript
Raw Normal View History

2021-05-02 10:42:38 +08:00
import gql from "graphql-tag";
export const ARTICLE_FOR_HOME = gql`
query ArticlesForHome {
articles {
id
title
2021-07-03 09:55:27 +08:00
description
2021-05-02 10:42:38 +08:00
publishedAt
}
}
`;
2021-05-02 20:04:54 +08:00
export const ARTICLE = gql`
query Article($id: String!) {
article(id: $id) {
id
title
2021-07-03 09:55:27 +08:00
description
html
2021-05-02 20:04:54 +08:00
publishedAt
}
}
`;