@@ -3,14 +3,17 @@ schema {
33}
44
55type Query {
6- allIncident (filter :IncidentQueryFilter , paginate : QueryPaginate , sort : QuerySort ): IncidentResultList
7- incident (number : String ! ): Incident
6+ allIncident (
7+ filter : IncidentQueryFilter
8+ paginate : QueryPaginate
9+ sort : QuerySort
10+ ): IncidentResultList
11+ incident (number : String ! ): Incident
812}
913
10-
1114type Incident {
1215 id : ID !
13- number : String !
16+ number : String !
1417 active : Boolean
1518 state : IncidentState @source (value : " state.value" )
1619 priority : IncidentPriority @source (value : " priority.value" )
@@ -19,16 +22,17 @@ type Incident {
1922 description : String
2023 resolvedBy : User @source (value : " resolvedBy.value" )
2124 openedBy : User @source (value : " openedBy.value" )
22- openedAt (format :String ): String @source (value : " openedAt.value" )
23- resolvedAt (format :String ): String @source (value : " resolvedAt.value" )
24- closedAt (format :String ): String @source (value : " closedAt.value" )
25+ openedAt (format : String ): String @source (value : " openedAt.value" )
26+ resolvedAt (format : String ): String @source (value : " resolvedAt.value" )
27+ closedAt (format : String ): String @source (value : " closedAt.value" )
2528 parentIncident : Incident @source (value : " parentIncident.value" )
26- childIncidents (filter :IncidentQueryFilter ): IncidentResultList @source (value : " childIncidents.value" )
29+ childIncidents (filter : IncidentQueryFilter ): IncidentResultList
30+ @source (value : " childIncidents.value" )
2731}
2832
2933type User {
30- id : String
31- email : String
34+ id : String
35+ email : String
3236}
3337
3438type IncidentResultList {
@@ -49,11 +53,11 @@ input QueryPaginate {
4953
5054input QuerySort {
5155 by : String !
52- order :SortOrder
56+ order : SortOrder
5357}
5458
5559input IncidentQueryFilter {
56- number : StringQueryOperatorInput
60+ number : IncidentNumberOperatorInput
5761 state : IncidentStateOperatorInput
5862 contactType : IncidentContactTypeOperatorInput
5963 impact : IncidentImpactOperatorInput
@@ -125,6 +129,26 @@ input StringQueryOperatorInput {
125129 in : [String ]
126130}
127131
132+ input StringBetweenQueryFilter {
133+ from : String !
134+ to : String !
135+ }
136+
137+ input IncidentNumberOperatorInput {
138+ # Filter by property of (strict) equality.
139+ eq : String
140+ # Filter by property not equal to provided value.
141+ ne : String
142+ # Filter by property matching any of the provided values.
143+ in : [String ]
144+ nin : [String ]
145+ lte : String
146+ lt : String
147+ gt : String
148+ gte : String
149+ between : StringBetweenQueryFilter
150+ }
151+
128152input IncidentStateOperatorInput {
129153 # Filter by property of (strict) equality.
130154 eq : IncidentState
@@ -141,6 +165,7 @@ input IncidentContactTypeOperatorInput {
141165 ne : IncidentContactType
142166 # Filter by property matching any of the provided values.
143167 in : [IncidentContactType ]
168+ nin : [String ]
144169}
145170
146171input IncidentUrgencyOperatorInput {
@@ -150,6 +175,7 @@ input IncidentUrgencyOperatorInput {
150175 ne : IncidentUrgency
151176 # Filter by property matching any of the provided values.
152177 in : [IncidentUrgency ]
178+ nin : [String ]
153179}
154180
155181input IncidentImpactOperatorInput {
@@ -159,6 +185,7 @@ input IncidentImpactOperatorInput {
159185 ne : IncidentImpact
160186 # Filter by property matching any of the provided values.
161187 in : [IncidentImpact ]
188+ nin : [String ]
162189}
163190
164191input IncidentPriorityOperatorInput {
@@ -168,4 +195,5 @@ input IncidentPriorityOperatorInput {
168195 ne : IncidentPriority
169196 # Filter by property matching any of the provided values.
170197 in : [IncidentPriority ]
171- }
198+ nin : [String ]
199+ }
0 commit comments