feat: comments delete + refresh on post + formatting
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user