We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9858f1 commit 42b348aCopy full SHA for 42b348a
graphql/comment.graphql
@@ -0,0 +1,3 @@
1
+extend type Mutation {
2
+ createComment(content: String!): Comment! @guard
3
+}
graphql/post.graphql
@@ -14,4 +14,16 @@ extend type Mutation {
14
content: String!,
15
category: Int!,
16
): Post! @guard
17
+
18
+ updatePost(
19
+ id: ID! @eq,
20
+ title: String,
21
+ content: String,
22
+ category: Int,
23
+ isPublished: Boolean,
24
+ likes: Int,
25
+ views: Int
26
+ ): Post @update @guard
27
28
+ deletePost(id: ID!): Post @guard @delete
29
}
0 commit comments