File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11extend type Query {
22 categories : [Category ! ]! @paginate
33 category (id : ID ! @eq ): Category @find
4+ }
5+
6+ extend type Mutation {
7+ createCategory (name : String ! , description : String ! ): Category ! @create
8+ deleteCategory (id : ID ! @eq ): Category @guard @delete
49}
Original file line number Diff line number Diff line change 11extend type Mutation {
22 createComment (content : String ! ): Comment ! @guard
33 updateComment (id : ID ! @eq , content : String ! ): Comment @guard @update
4+ deleteComment (id : ID ! @eq ): Comment @guard @delete
45}
Original file line number Diff line number Diff line change 11extend type Query {
22 tags : [Tag ! ]! @paginate
33 tag (id : ID ! @eq ): Tag @find
4+ }
5+
6+ extend type Mutation {
7+ createTag (name : String ! @eq , description : String ! ): Tag ! @guard @create
8+ updateTag (id : ID ! @eq , name : String , description : String ): Tag @guard @update
9+ deleteTag (id : ID ! @eq ): Tag @guard @delete
410}
You can’t perform that action at this time.
0 commit comments