api.graphql
1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type Comment {
author: String!
content: String!
created_date: String!
id: Int!
parent: Int!
post_id: Int!
updated_date: String
}
input CreateCommentInput {
content: String!
parent: Float
post_id: Int!
}
input CreateLikeableInput {
like_dislike: Int!
likeable_id: Int!
likeable_type: String!
}
input CreateMyInput {
name: String!
type: String
}
input CreatePostInput {
category: String!
content: String!
title: String!
}
input GetCommentInput {
author: String
parent: String
post_id: Float
}
input GetLikeableInput {
likeable_id: Float
likeable_type: String!
user_id: String
}
input GetPostInput {
author: String
category: String
id: Float
}
type Likeable {
created_date: String!
id: Int!
like_dislike: Int!
likeable_id: Int!
likeable_type: String!
user_id: String!
}
type Mutation {
createComment(input: CreateCommentInput!): Comment!
createLikeable(input: CreateLikeableInput!): Likeable!
createMyPage(createMyInput: CreateMyInput!): MyPage!
createPost(input: CreatePostInput!): Post!
}
type MyPage {
id: Int!
name: String!
type: String
}
type Post {
author: String!
category: String!
content: String!
created_date: String!
id: Int!
title: String!
updated_date: String
}
type Query {
getAllComments: [Comment!]!
getAllLikes: [Likeable!]!
getAllPosts: [Post!]!
getComment(id: Float!): Comment!
getLikeable(id: Float!): Likeable!
getPost(id: Float!): Post!
getSomeComments(input: GetCommentInput!): [Comment!]!
getSomePosts(input: GetPostInput!): [Post!]!
getTotalLikes(input: GetLikeableInput!): Float!
myPage: [MyPage!]!
}