11# This file is automatically generated by Keystone, do not modify it manually.
22# Modify your Keystone config when you want to change this.
33
4- type Task {
4+ type Post {
55 id : ID !
6- label : String
7- priority : TaskPriorityType
8- isComplete : Boolean
9- assignedTo : Person
10- finishBy : DateTime
6+ title : String
7+ content : String
8+ draft : Boolean
119}
1210
13- enum TaskPriorityType {
14- low
15- medium
16- high
17- }
18-
19- scalar DateTime @specifiedBy (url : " https://datatracker.ietf.org/doc/html/rfc3339#section-5.6" )
20-
21- input TaskWhereUniqueInput {
11+ input PostWhereUniqueInput {
2212 id : ID
2313}
2414
25- input TaskWhereInput {
26- AND : [TaskWhereInput ! ]
27- OR : [TaskWhereInput ! ]
28- NOT : [TaskWhereInput ! ]
15+ input PostWhereInput {
16+ AND : [PostWhereInput ! ]
17+ OR : [PostWhereInput ! ]
18+ NOT : [PostWhereInput ! ]
2919 id : IDFilter
30- label : StringFilter
31- priority : TaskPriorityTypeNullableFilter
32- isComplete : BooleanFilter
33- assignedTo : PersonWhereInput
34- finishBy : DateTimeNullableFilter
20+ title : StringFilter
21+ content : StringFilter
22+ draft : BooleanFilter
3523}
3624
3725input IDFilter {
@@ -73,131 +61,38 @@ input NestedStringFilter {
7361 not : NestedStringFilter
7462}
7563
76- input TaskPriorityTypeNullableFilter {
77- equals : TaskPriorityType
78- in : [TaskPriorityType ! ]
79- notIn : [TaskPriorityType ! ]
80- not : TaskPriorityTypeNullableFilter
81- }
82-
8364input BooleanFilter {
8465 equals : Boolean
8566 not : BooleanFilter
8667}
8768
88- input DateTimeNullableFilter {
89- equals : DateTime
90- in : [DateTime ! ]
91- notIn : [DateTime ! ]
92- lt : DateTime
93- lte : DateTime
94- gt : DateTime
95- gte : DateTime
96- not : DateTimeNullableFilter
97- }
98-
99- input TaskOrderByInput {
69+ input PostOrderByInput {
10070 id : OrderDirection
101- label : OrderDirection
102- priority : OrderDirection
103- isComplete : OrderDirection
104- finishBy : OrderDirection
71+ title : OrderDirection
72+ content : OrderDirection
73+ draft : OrderDirection
10574}
10675
10776enum OrderDirection {
10877 asc
10978 desc
11079}
11180
112- input TaskUpdateInput {
113- label : String
114- priority : TaskPriorityType
115- isComplete : Boolean
116- assignedTo : PersonRelateToOneForUpdateInput
117- finishBy : DateTime
118- }
119-
120- input PersonRelateToOneForUpdateInput {
121- create : PersonCreateInput
122- connect : PersonWhereUniqueInput
123- disconnect : Boolean
124- }
125-
126- input TaskUpdateArgs {
127- where : TaskWhereUniqueInput !
128- data : TaskUpdateInput !
129- }
130-
131- input TaskCreateInput {
132- label : String
133- priority : TaskPriorityType
134- isComplete : Boolean
135- assignedTo : PersonRelateToOneForCreateInput
136- finishBy : DateTime
137- }
138-
139- input PersonRelateToOneForCreateInput {
140- create : PersonCreateInput
141- connect : PersonWhereUniqueInput
142- }
143-
144- type Person {
145- id : ID !
146- name : String
147- tasks (where : TaskWhereInput ! = {}, orderBy : [TaskOrderByInput ! ]! = [], take : Int , skip : Int ! = 0 , cursor : TaskWhereUniqueInput ): [Task ! ]
148- tasksCount (where : TaskWhereInput ! = {}): Int
149- }
150-
151- input PersonWhereUniqueInput {
152- id : ID
153- name : String
154- }
155-
156- input PersonWhereInput {
157- AND : [PersonWhereInput ! ]
158- OR : [PersonWhereInput ! ]
159- NOT : [PersonWhereInput ! ]
160- id : IDFilter
161- name : StringFilter
162- tasks : TaskManyRelationFilter
163- }
164-
165- input TaskManyRelationFilter {
166- every : TaskWhereInput
167- some : TaskWhereInput
168- none : TaskWhereInput
169- }
170-
171- input PersonOrderByInput {
172- id : OrderDirection
173- name : OrderDirection
174- }
175-
176- input PersonUpdateInput {
177- name : String
178- tasks : TaskRelateToManyForUpdateInput
179- }
180-
181- input TaskRelateToManyForUpdateInput {
182- disconnect : [TaskWhereUniqueInput ! ]
183- set : [TaskWhereUniqueInput ! ]
184- create : [TaskCreateInput ! ]
185- connect : [TaskWhereUniqueInput ! ]
186- }
187-
188- input PersonUpdateArgs {
189- where : PersonWhereUniqueInput !
190- data : PersonUpdateInput !
81+ input PostUpdateInput {
82+ title : String
83+ content : String
84+ draft : Boolean
19185}
19286
193- input PersonCreateInput {
194- name : String
195- tasks : TaskRelateToManyForCreateInput
87+ input PostUpdateArgs {
88+ where : PostWhereUniqueInput !
89+ data : PostUpdateInput !
19690}
19791
198- input TaskRelateToManyForCreateInput {
199- create : [TaskCreateInput ! ]
200- connect : [TaskWhereUniqueInput ! ]
92+ input PostCreateInput {
93+ title : String
94+ content : String
95+ draft : Boolean
20196}
20297
20398"""
@@ -206,27 +101,18 @@ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://
206101scalar JSON @specifiedBy (url : " http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf" )
207102
208103type Mutation {
209- createTask (data : TaskCreateInput ! ): Task
210- createTasks (data : [TaskCreateInput ! ]! ): [Task ]
211- updateTask (where : TaskWhereUniqueInput ! , data : TaskUpdateInput ! ): Task
212- updateTasks (data : [TaskUpdateArgs ! ]! ): [Task ]
213- deleteTask (where : TaskWhereUniqueInput ! ): Task
214- deleteTasks (where : [TaskWhereUniqueInput ! ]! ): [Task ]
215- createPerson (data : PersonCreateInput ! ): Person
216- createPeople (data : [PersonCreateInput ! ]! ): [Person ]
217- updatePerson (where : PersonWhereUniqueInput ! , data : PersonUpdateInput ! ): Person
218- updatePeople (data : [PersonUpdateArgs ! ]! ): [Person ]
219- deletePerson (where : PersonWhereUniqueInput ! ): Person
220- deletePeople (where : [PersonWhereUniqueInput ! ]! ): [Person ]
104+ createPost (data : PostCreateInput ! ): Post
105+ createPosts (data : [PostCreateInput ! ]! ): [Post ]
106+ updatePost (where : PostWhereUniqueInput ! , data : PostUpdateInput ! ): Post
107+ updatePosts (data : [PostUpdateArgs ! ]! ): [Post ]
108+ deletePost (where : PostWhereUniqueInput ! ): Post
109+ deletePosts (where : [PostWhereUniqueInput ! ]! ): [Post ]
221110}
222111
223112type Query {
224- tasks (where : TaskWhereInput ! = {}, orderBy : [TaskOrderByInput ! ]! = [], take : Int , skip : Int ! = 0 , cursor : TaskWhereUniqueInput ): [Task ! ]
225- task (where : TaskWhereUniqueInput ! ): Task
226- tasksCount (where : TaskWhereInput ! = {}): Int
227- people (where : PersonWhereInput ! = {}, orderBy : [PersonOrderByInput ! ]! = [], take : Int , skip : Int ! = 0 , cursor : PersonWhereUniqueInput ): [Person ! ]
228- person (where : PersonWhereUniqueInput ! ): Person
229- peopleCount (where : PersonWhereInput ! = {}): Int
113+ posts (where : PostWhereInput ! = {}, orderBy : [PostOrderByInput ! ]! = [], take : Int , skip : Int ! = 0 , cursor : PostWhereUniqueInput ): [Post ! ]
114+ post (where : PostWhereUniqueInput ! ): Post
115+ postsCount (where : PostWhereInput ! = {}): Int
230116 keystone : KeystoneMeta !
231117}
232118
0 commit comments