Showing
6 changed files
with
68 additions
and
0 deletions
project/packages/web/src/config/URI.ts
0 → 100644
project/packages/web/src/gql/create-post.ts
0 → 100644
1 | +import gql from 'graphql-tag'; | ||
2 | + | ||
3 | +export const GET_POST_WITH_COMMENTS = gql` | ||
4 | + query GetPostWithComments($post_id: Float!, $inputComment: GetCommentInput!) { | ||
5 | + getPost(id: $post_id) { | ||
6 | + id | ||
7 | + author | ||
8 | + category | ||
9 | + created_date | ||
10 | + title | ||
11 | + content | ||
12 | + } | ||
13 | + getSomeComments(input: $inputComment) { | ||
14 | + id | ||
15 | + author | ||
16 | + content | ||
17 | + created_date | ||
18 | + } | ||
19 | + } | ||
20 | +`; |
-
Please register or login to post a comment