@@ -21,6 +21,8 @@ type Post @create @update @item @delete {
2121 category : Category
2222}
2323
24+ # start: @create Post
25+
2426type Mutation {
2527 createPost (input : CreatePostInput ! ): CreatePostOutput !
2628}
@@ -58,6 +60,10 @@ type CreatePostValidation {
5860
5961scalar CreatePostValidationIssues @issues (input : " CreatePostInput" )
6062
63+ # end: @create Post
64+
65+ # start: @update Post
66+
6167extend type Mutation {
6268 updatePost (input : UpdatePostInput ! ): UpdatePostOutput !
6369}
@@ -96,6 +102,10 @@ type UpdatePostValidation {
96102
97103scalar UpdatePostValidationIssues @issues (input : " UpdatePostInput" )
98104
105+ # end: @update Post
106+
107+ # start: @item Post
108+
99109type Query {
100110 post (input : PostItemInput ! ): Post
101111}
@@ -104,6 +114,10 @@ input PostItemInput {
104114 id : ID !
105115}
106116
117+ # end: @item Post
118+
119+ # start: @delete Post
120+
107121extend type Mutation {
108122 deletePost (input : DeletePostInput ! ): Void
109123}
@@ -112,6 +126,8 @@ input DeletePostInput {
112126 id : ID !
113127}
114128
129+ # end: @delete Post
130+
115131type Category {
116132 id : ID !
117133}
@@ -127,6 +143,8 @@ type Todo @list(field: "todos") {
127143 tags : [Tag ! ]
128144}
129145
146+ # start: @list Todo
147+
130148extend type Query {
131149 todos (input : TodoListInput ): [Todo ! ]!
132150}
@@ -178,12 +196,16 @@ input TodoOrderByInput {
178196 tags : OrderByRelationAggregateInput
179197}
180198
199+ # end: @list Todo
200+
181201type User {
182202 id : ID !
183203 email : String
184204 todos : [Todo ! ]
185205}
186206
207+ # start: @list User
208+
187209input UserWhereInput {
188210 id : IDFilterInput
189211 email : StringFilterInput
@@ -198,12 +220,16 @@ input UserOrderByInput {
198220 todos : OrderByRelationAggregateInput
199221}
200222
223+ # end: @list User
224+
201225type Tag {
202226 id : ID !
203227 title : String
204228 todos : [Todo ! ]
205229}
206230
231+ # start: @list Tag
232+
207233input TagWhereInput {
208234 id : IDFilterInput
209235 title : StringFilterInput
@@ -219,6 +245,8 @@ input TagListRelationFilterInput {
219245 none : TagWhereInput
220246}
221247
248+ # end: @list Tag
249+
222250directive @signature (fields : [String ! ]! ) on UNION
223251
224252directive @member (type : String ! , signature : String ! ) repeatable on UNION
0 commit comments