|
| 1 | +# Autogenerated input type of AddComment |
| 2 | +input AddCommentInput { |
| 3 | + articleId: ID! |
| 4 | + body: String! |
| 5 | + |
| 6 | + # A unique identifier for the client performing the mutation. |
| 7 | + clientMutationId: String |
| 8 | +} |
| 9 | + |
1 | 10 | # Autogenerated return type of AddComment
|
2 | 11 | type AddCommentPayload {
|
| 12 | + # A unique identifier for the client performing the mutation. |
| 13 | + clientMutationId: String |
3 | 14 | comment: Comment
|
4 | 15 | errors: [UserError!]!
|
5 | 16 | }
|
@@ -38,60 +49,123 @@ type ArticleEdge {
|
38 | 49 | }
|
39 | 50 |
|
40 | 51 | type Comment {
|
41 |
| - author: User! |
| 52 | + author: Profile! |
42 | 53 | body: String!
|
43 | 54 | createdAt: DateTime!
|
44 | 55 | id: ID!
|
45 | 56 | updatedAt: DateTime!
|
46 | 57 | }
|
47 | 58 |
|
| 59 | +# Autogenerated input type of CreateArticle |
| 60 | +input CreateArticleInput { |
| 61 | + body: String! |
| 62 | + |
| 63 | + # A unique identifier for the client performing the mutation. |
| 64 | + clientMutationId: String |
| 65 | + description: String! |
| 66 | + tagList: [String!]! |
| 67 | + title: String! |
| 68 | +} |
| 69 | + |
48 | 70 | # Autogenerated return type of CreateArticle
|
49 | 71 | type CreateArticlePayload {
|
50 | 72 | article: Article
|
| 73 | + |
| 74 | + # A unique identifier for the client performing the mutation. |
| 75 | + clientMutationId: String |
51 | 76 | errors: [UserError!]!
|
52 | 77 | }
|
53 | 78 |
|
| 79 | +# Autogenerated input type of CreateUser |
| 80 | +input CreateUserInput { |
| 81 | + # A unique identifier for the client performing the mutation. |
| 82 | + clientMutationId: String |
| 83 | + email: String! |
| 84 | + password: String! |
| 85 | + username: String! |
| 86 | +} |
| 87 | + |
54 | 88 | # Autogenerated return type of CreateUser
|
55 | 89 | type CreateUserPayload {
|
| 90 | + # A unique identifier for the client performing the mutation. |
| 91 | + clientMutationId: String |
56 | 92 | errors: [UserError!]!
|
57 | 93 | user: User
|
58 | 94 | }
|
59 | 95 |
|
60 | 96 | scalar DateTime
|
61 | 97 |
|
| 98 | +# Autogenerated input type of DeleteArticle |
| 99 | +input DeleteArticleInput { |
| 100 | + # A unique identifier for the client performing the mutation. |
| 101 | + clientMutationId: String |
| 102 | + id: ID! |
| 103 | +} |
| 104 | + |
62 | 105 | # Autogenerated return type of DeleteArticle
|
63 | 106 | type DeleteArticlePayload {
|
64 | 107 | article: Article!
|
| 108 | + |
| 109 | + # A unique identifier for the client performing the mutation. |
| 110 | + clientMutationId: String |
| 111 | +} |
| 112 | + |
| 113 | +# Autogenerated input type of DeleteComment |
| 114 | +input DeleteCommentInput { |
| 115 | + # A unique identifier for the client performing the mutation. |
| 116 | + clientMutationId: String |
| 117 | + id: ID! |
65 | 118 | }
|
66 | 119 |
|
67 | 120 | # Autogenerated return type of DeleteComment
|
68 | 121 | type DeleteCommentPayload {
|
| 122 | + # A unique identifier for the client performing the mutation. |
| 123 | + clientMutationId: String |
69 | 124 | comment: Comment
|
70 | 125 | }
|
71 | 126 |
|
| 127 | +# Autogenerated input type of FavoriteArticle |
| 128 | +input FavoriteArticleInput { |
| 129 | + # A unique identifier for the client performing the mutation. |
| 130 | + clientMutationId: String |
| 131 | + id: ID! |
| 132 | +} |
| 133 | + |
72 | 134 | # Autogenerated return type of FavoriteArticle
|
73 | 135 | type FavoriteArticlePayload {
|
74 | 136 | article: Article
|
| 137 | + |
| 138 | + # A unique identifier for the client performing the mutation. |
| 139 | + clientMutationId: String |
| 140 | +} |
| 141 | + |
| 142 | +# Autogenerated input type of FollowUser |
| 143 | +input FollowUserInput { |
| 144 | + # A unique identifier for the client performing the mutation. |
| 145 | + clientMutationId: String |
| 146 | + id: ID! |
75 | 147 | }
|
76 | 148 |
|
77 | 149 | # Autogenerated return type of FollowUser
|
78 | 150 | type FollowUserPayload {
|
| 151 | + # A unique identifier for the client performing the mutation. |
| 152 | + clientMutationId: String |
79 | 153 | user: Profile
|
80 | 154 | }
|
81 | 155 |
|
82 | 156 | type Mutation {
|
83 |
| - addComment(articleId: ID!, body: String!): AddCommentPayload |
84 |
| - createArticle(body: String!, description: String!, tagList: [String!]!, title: String!): CreateArticlePayload |
85 |
| - createUser(email: String!, password: String!, username: String!): CreateUserPayload |
86 |
| - deleteArticle(id: ID!): DeleteArticlePayload |
87 |
| - deleteComment(id: ID!): DeleteCommentPayload |
88 |
| - favoriteArticle(id: ID!): FavoriteArticlePayload |
89 |
| - followUser(id: ID!): FollowUserPayload |
90 |
| - signinUser(email: String!, password: String!): SignInUserPayload |
91 |
| - unfavoriteArticle(id: ID!): UnfavoriteArticlePayload |
92 |
| - unfollowUser(id: ID!): UnfollowUserPayload |
93 |
| - updateArticle(body: String!, description: String!, id: ID!, tagList: [String!]!, title: String!): UpdateArticlePayload |
94 |
| - updateUser(bio: String, email: String!, image: String, password: String, username: String!): UpdateUserPayload |
| 157 | + addComment(input: AddCommentInput!): AddCommentPayload |
| 158 | + createArticle(input: CreateArticleInput!): CreateArticlePayload |
| 159 | + createUser(input: CreateUserInput!): CreateUserPayload |
| 160 | + deleteArticle(input: DeleteArticleInput!): DeleteArticlePayload |
| 161 | + deleteComment(input: DeleteCommentInput!): DeleteCommentPayload |
| 162 | + favoriteArticle(input: FavoriteArticleInput!): FavoriteArticlePayload |
| 163 | + followUser(input: FollowUserInput!): FollowUserPayload |
| 164 | + signInUser(input: SignInUserInput!): SignInUserPayload |
| 165 | + unfavoriteArticle(input: UnfavoriteArticleInput!): UnfavoriteArticlePayload |
| 166 | + unfollowUser(input: UnfollowUserInput!): UnfollowUserPayload |
| 167 | + updateArticle(input: UpdateArticleInput!): UpdateArticlePayload |
| 168 | + updateUser(input: UpdateUserInput!): UpdateUserPayload |
95 | 169 | }
|
96 | 170 |
|
97 | 171 | # Information about pagination in a connection.
|
@@ -155,31 +229,89 @@ type Query {
|
155 | 229 | tags: [String!]!
|
156 | 230 | }
|
157 | 231 |
|
| 232 | +# Autogenerated input type of SignInUser |
| 233 | +input SignInUserInput { |
| 234 | + # A unique identifier for the client performing the mutation. |
| 235 | + clientMutationId: String |
| 236 | + email: String! |
| 237 | + password: String! |
| 238 | +} |
| 239 | + |
158 | 240 | # Autogenerated return type of SignInUser
|
159 | 241 | type SignInUserPayload {
|
| 242 | + # A unique identifier for the client performing the mutation. |
| 243 | + clientMutationId: String |
160 | 244 | errors: [UserError!]!
|
161 | 245 | token: String
|
162 | 246 | user: User
|
163 | 247 | }
|
164 | 248 |
|
| 249 | +# Autogenerated input type of UnfavoriteArticle |
| 250 | +input UnfavoriteArticleInput { |
| 251 | + # A unique identifier for the client performing the mutation. |
| 252 | + clientMutationId: String |
| 253 | + id: ID! |
| 254 | +} |
| 255 | + |
165 | 256 | # Autogenerated return type of UnfavoriteArticle
|
166 | 257 | type UnfavoriteArticlePayload {
|
167 | 258 | article: Article
|
| 259 | + |
| 260 | + # A unique identifier for the client performing the mutation. |
| 261 | + clientMutationId: String |
| 262 | +} |
| 263 | + |
| 264 | +# Autogenerated input type of UnfollowUser |
| 265 | +input UnfollowUserInput { |
| 266 | + # A unique identifier for the client performing the mutation. |
| 267 | + clientMutationId: String |
| 268 | + id: ID! |
168 | 269 | }
|
169 | 270 |
|
170 | 271 | # Autogenerated return type of UnfollowUser
|
171 | 272 | type UnfollowUserPayload {
|
| 273 | + # A unique identifier for the client performing the mutation. |
| 274 | + clientMutationId: String |
172 | 275 | user: Profile
|
173 | 276 | }
|
174 | 277 |
|
| 278 | +# Autogenerated input type of UpdateArticle |
| 279 | +input UpdateArticleInput { |
| 280 | + body: String! |
| 281 | + |
| 282 | + # A unique identifier for the client performing the mutation. |
| 283 | + clientMutationId: String |
| 284 | + description: String! |
| 285 | + id: ID! |
| 286 | + tagList: [String!]! |
| 287 | + title: String! |
| 288 | +} |
| 289 | + |
175 | 290 | # Autogenerated return type of UpdateArticle
|
176 | 291 | type UpdateArticlePayload {
|
177 | 292 | article: Article
|
| 293 | + |
| 294 | + # A unique identifier for the client performing the mutation. |
| 295 | + clientMutationId: String |
178 | 296 | errors: [UserError!]!
|
179 | 297 | }
|
180 | 298 |
|
| 299 | +# Autogenerated input type of UpdateUser |
| 300 | +input UpdateUserInput { |
| 301 | + bio: String |
| 302 | + |
| 303 | + # A unique identifier for the client performing the mutation. |
| 304 | + clientMutationId: String |
| 305 | + email: String! |
| 306 | + image: String |
| 307 | + password: String |
| 308 | + username: String! |
| 309 | +} |
| 310 | + |
181 | 311 | # Autogenerated return type of UpdateUser
|
182 | 312 | type UpdateUserPayload {
|
| 313 | + # A unique identifier for the client performing the mutation. |
| 314 | + clientMutationId: String |
183 | 315 | errors: [UserError!]!
|
184 | 316 | user: User
|
185 | 317 | }
|
|
0 commit comments