feat: comments delete + refresh on post + formatting

This commit is contained in:
NGPixel
2020-05-31 02:13:41 -04:00
parent 83f7c2867d
commit 8a74904731
7 changed files with 375 additions and 52 deletions

View File

@@ -18,7 +18,8 @@ type CommentQuery {
providers: [CommentProvider] @auth(requires: ["manage:system"])
list(
pageId: Int!
locale: String!
path: String!
): [CommentPost]! @auth(requires: ["read:comments", "manage:system"])
single(
@@ -41,7 +42,7 @@ type CommentMutation {
content: String!
guestName: String
guestEmail: String
): DefaultResponse @auth(requires: ["write:comments", "manage:system"])
): CommentCreateResponse @auth(requires: ["write:comments", "manage:system"])
update(
id: Int!
@@ -85,3 +86,8 @@ type CommentPost {
createdAt: Date!
updatedAt: Date!
}
type CommentCreateResponse {
responseResult: ResponseStatus
id: Int
}