@@ -176,6 +176,8 @@ type Order {
176176 id : ID !
177177 description : String
178178 assignedTo : Person
179+ options (where : OptionWhereInput ! = {}, orderBy : [OptionOrderByInput ! ]! = [], take : Int , skip : Int ! = 0 , cursor : OptionWhereUniqueInput ): [Option ! ]
180+ optionsCount (where : OptionWhereInput ! = {}): Int
179181 orderedAt : DateTime
180182}
181183
@@ -190,9 +192,16 @@ input OrderWhereInput {
190192 id : IDFilter
191193 description : StringFilter
192194 assignedTo : PersonWhereInput
195+ options : OptionManyRelationFilter
193196 orderedAt : DateTimeNullableFilter
194197}
195198
199+ input OptionManyRelationFilter {
200+ every : OptionWhereInput
201+ some : OptionWhereInput
202+ none : OptionWhereInput
203+ }
204+
196205input OrderOrderByInput {
197206 id : OrderDirection
198207 description : OrderDirection
@@ -202,9 +211,17 @@ input OrderOrderByInput {
202211input OrderUpdateInput {
203212 description : String
204213 assignedTo : PersonRelateToOneForUpdateInput
214+ options : OptionRelateToManyForUpdateInput
205215 orderedAt : DateTime
206216}
207217
218+ input OptionRelateToManyForUpdateInput {
219+ disconnect : [OptionWhereUniqueInput ! ]
220+ set : [OptionWhereUniqueInput ! ]
221+ create : [OptionCreateInput ! ]
222+ connect : [OptionWhereUniqueInput ! ]
223+ }
224+
208225input OrderUpdateArgs {
209226 where : OrderWhereUniqueInput !
210227 data : OrderUpdateInput !
@@ -213,9 +230,50 @@ input OrderUpdateArgs {
213230input OrderCreateInput {
214231 description : String
215232 assignedTo : PersonRelateToOneForCreateInput
233+ options : OptionRelateToManyForCreateInput
216234 orderedAt : DateTime
217235}
218236
237+ input OptionRelateToManyForCreateInput {
238+ create : [OptionCreateInput ! ]
239+ connect : [OptionWhereUniqueInput ! ]
240+ }
241+
242+ type Option {
243+ id : ID !
244+ description : String
245+ }
246+
247+ input OptionWhereUniqueInput {
248+ id : ID
249+ }
250+
251+ input OptionWhereInput {
252+ AND : [OptionWhereInput ! ]
253+ OR : [OptionWhereInput ! ]
254+ NOT : [OptionWhereInput ! ]
255+ id : IDFilter
256+ description : StringFilter
257+ }
258+
259+ input OptionOrderByInput {
260+ id : OrderDirection
261+ description : OrderDirection
262+ }
263+
264+ input OptionUpdateInput {
265+ description : String
266+ }
267+
268+ input OptionUpdateArgs {
269+ where : OptionWhereUniqueInput !
270+ data : OptionUpdateInput !
271+ }
272+
273+ input OptionCreateInput {
274+ description : String
275+ }
276+
219277"""
220278The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
221279"""
@@ -240,6 +298,12 @@ type Mutation {
240298 updateOrders (data : [OrderUpdateArgs ! ]! ): [Order ]
241299 deleteOrder (where : OrderWhereUniqueInput ! ): Order
242300 deleteOrders (where : [OrderWhereUniqueInput ! ]! ): [Order ]
301+ createOption (data : OptionCreateInput ! ): Option
302+ createOptions (data : [OptionCreateInput ! ]! ): [Option ]
303+ updateOption (where : OptionWhereUniqueInput ! , data : OptionUpdateInput ! ): Option
304+ updateOptions (data : [OptionUpdateArgs ! ]! ): [Option ]
305+ deleteOption (where : OptionWhereUniqueInput ! ): Option
306+ deleteOptions (where : [OptionWhereUniqueInput ! ]! ): [Option ]
243307}
244308
245309type Query {
@@ -252,6 +316,9 @@ type Query {
252316 orders (where : OrderWhereInput ! = {}, orderBy : [OrderOrderByInput ! ]! = [], take : Int , skip : Int ! = 0 , cursor : OrderWhereUniqueInput ): [Order ! ]
253317 order (where : OrderWhereUniqueInput ! ): Order
254318 ordersCount (where : OrderWhereInput ! = {}): Int
319+ options (where : OptionWhereInput ! = {}, orderBy : [OptionOrderByInput ! ]! = [], take : Int , skip : Int ! = 0 , cursor : OptionWhereUniqueInput ): [Option ! ]
320+ option (where : OptionWhereUniqueInput ! ): Option
321+ optionsCount (where : OptionWhereInput ! = {}): Int
255322 keystone : KeystoneMeta !
256323}
257324
0 commit comments