1+ enum SortingDirection {
2+ ASC
3+ DESC
4+ }
5+
16type Continent {
27 id : ID !
38 code : String
49 type : String
510 desc : String
6- airportContainssOut (filter : AirportInput , options : Options ): [Airport ]
11+ airportContainssOut (filter : AirportInput , options : Options , sort : [ AirportSort ! ] ): [Airport ]
712 contains : Contains
813}
914
1015input ContinentInput {
1116 id : ID
17+ code : StringScalarFilters
18+ type : StringScalarFilters
19+ desc : StringScalarFilters
20+ }
21+
22+ input ContinentCreateInput {
23+ id : ID
24+ code : String
25+ type : String
26+ desc : String
27+ }
28+
29+ input ContinentUpdateInput {
30+ id : ID !
1231 code : String
1332 type : String
1433 desc : String
1534}
1635
36+ input ContinentSort {
37+ id : SortingDirection
38+ type : SortingDirection
39+ code : SortingDirection
40+ desc : SortingDirection
41+ }
42+
1743type Country {
1844 _id : ID !
1945 code : String
2046 type : String
2147 desc : String
22- airportContainssOut (filter : AirportInput , options : Options ): [Airport ]
48+ airportContainssOut (filter : AirportInput , options : Options , sort : [ AirportSort ! ] ): [Airport ]
2349 contains : Contains
2450}
2551
2652input CountryInput {
53+ _id : ID
54+ code : StringScalarFilters
55+ type : StringScalarFilters
56+ desc : StringScalarFilters
57+ }
58+
59+ input CountryCreateInput {
2760 _id : ID
2861 code : String
2962 type : String
3063 desc : String
3164}
3265
66+ input CountryUpdateInput {
67+ _id : ID !
68+ code : String
69+ type : String
70+ desc : String
71+ }
72+
73+ input CountrySort {
74+ _id : SortingDirection
75+ code : SortingDirection
76+ type : SortingDirection
77+ desc : SortingDirection
78+ }
79+
3380type Version {
3481 _id : ID !
3582 date : String
@@ -41,13 +88,40 @@ type Version {
4188
4289input VersionInput {
4390 _id : ID
91+ date : StringScalarFilters
92+ code : StringScalarFilters
93+ author : StringScalarFilters
94+ type : StringScalarFilters
95+ desc : StringScalarFilters
96+ }
97+
98+ input VersionCreateInput {
99+ _id : ID
100+ date : String
101+ code : String
102+ author : String
103+ type : String
104+ desc : String
105+ }
106+
107+ input VersionUpdateInput {
108+ _id : ID !
44109 date : String
45110 code : String
46111 author : String
47112 type : String
48113 desc : String
49114}
50115
116+ input VersionSort {
117+ _id : SortingDirection
118+ date : SortingDirection
119+ code : SortingDirection
120+ author : SortingDirection
121+ type : SortingDirection
122+ desc : SortingDirection
123+ }
124+
51125type Airport {
52126 _id : ID !
53127 country : String
@@ -65,15 +139,47 @@ type Airport {
65139 outboundRoutesCount : Int
66140 continentContainsIn : Continent
67141 countryContainsIn : Country
68- airportRoutesOut (filter : AirportInput , options : Options ): [Airport ]
69- airportRoutesIn (filter : AirportInput , options : Options ): [Airport ]
142+ airportRoutesOut (filter : AirportInput , options : Options , sort : [ AirportSort ! ] ): [Airport ]
143+ airportRoutesIn (filter : AirportInput , options : Options , sort : [ AirportSort ! ] ): [Airport ]
70144 contains : Contains
71145 route : Route
72146 outboundRoutesCountAdd : Int
73147}
74148
75149input AirportInput {
76150 _id : ID
151+ country : StringScalarFilters
152+ longest : Int
153+ code : StringScalarFilters
154+ city : StringScalarFilters
155+ elev : Int
156+ icao : StringScalarFilters
157+ lon : Float
158+ runways : Int
159+ region : StringScalarFilters
160+ type : StringScalarFilters
161+ lat : Float
162+ desc : StringScalarFilters
163+ }
164+
165+ input AirportCreateInput {
166+ _id : ID
167+ country : String
168+ longest : Int
169+ code : String
170+ city : String
171+ elev : Int
172+ icao : String
173+ lon : Float
174+ runways : Int
175+ region : String
176+ type : String
177+ lat : Float
178+ desc : String
179+ }
180+
181+ input AirportUpdateInput {
182+ _id : ID !
77183 country : String
78184 longest : Int
79185 code : String
@@ -88,6 +194,21 @@ input AirportInput {
88194 desc : String
89195}
90196
197+ input AirportSort {
198+ country : SortingDirection
199+ longest : SortingDirection
200+ code : SortingDirection
201+ city : SortingDirection
202+ elev : SortingDirection
203+ icao : SortingDirection
204+ lon : SortingDirection
205+ runways : SortingDirection
206+ region : SortingDirection
207+ type : SortingDirection
208+ lat : SortingDirection
209+ desc : SortingDirection
210+ }
211+
91212type Contains {
92213 _id : ID !
93214}
@@ -103,6 +224,14 @@ input RouteInput {
103224
104225input Options {
105226 limit : Int
227+ offset : Int
228+ }
229+
230+ input StringScalarFilters {
231+ eq : String
232+ contains : String
233+ endsWith : String
234+ startsWith : String
106235}
107236
108237type Query {
@@ -112,13 +241,13 @@ type Query {
112241 getContinentsWithGremlin : [Continent ]
113242 getCountriesCountGremlin : Int
114243 getNodeContinent (filter : ContinentInput ): Continent
115- getNodeContinents (filter : ContinentInput , options : Options ): [Continent ]
244+ getNodeContinents (filter : ContinentInput , options : Options , sort : [ ContinentSort ! ] ): [Continent ]
116245 getNodeCountry (filter : CountryInput ): Country
117- getNodeCountrys (filter : CountryInput , options : Options ): [Country ]
246+ getNodeCountrys (filter : CountryInput , options : Options , sort : [ CountrySort ! ] ): [Country ]
118247 getNodeVersion (filter : VersionInput ): Version
119- getNodeVersions (filter : VersionInput , options : Options ): [Version ]
248+ getNodeVersions (filter : VersionInput , options : Options , sort : [ VersionSort ! ] ): [Version ]
120249 getNodeAirport (filter : AirportInput ): Airport
121- getNodeAirports (filter : AirportInput , options : Options ): [Airport ]
250+ getNodeAirports (filter : AirportInput , options : Options , sort : [ AirportSort ! ] ): [Airport ]
122251 getAirportWithGremlin (code : String ): Airport
123252 getCountriesCount : Int
124253}
@@ -127,15 +256,15 @@ type Mutation {
127256 createAirport (input : AirportInput ! ): Airport
128257 addRoute (fromAirportCode : String , toAirportCode : String , dist : Int ): Route
129258 deleteAirport (id : ID ): Int
130- createNodeContinent (input : ContinentInput ! ): Continent
131- updateNodeContinent (input : ContinentInput ! ): Continent
259+ createNodeContinent (input : ContinentCreateInput ! ): Continent
260+ updateNodeContinent (input : ContinentUpdateInput ! ): Continent
132261 deleteNodeContinent (_id : ID ! ): Boolean
133- createNodeCountry (input : CountryInput ! ): Country
134- updateNodeCountry (input : CountryInput ! ): Country
262+ createNodeCountry (input : CountryCreateInput ! ): Country
263+ updateNodeCountry (input : CountryUpdateInput ! ): Country
135264 deleteNodeCountry (_id : ID ! ): Boolean
136- updateNodeVersion (input : VersionInput ! ): Version
137- createNodeAirport (input : AirportInput ! ): Airport
138- updateNodeAirport (input : AirportInput ! ): Airport
265+ updateNodeVersion (input : VersionUpdateInput ! ): Version
266+ createNodeAirport (input : AirportCreateInput ! ): Airport
267+ updateNodeAirport (input : AirportUpdateInput ! ): Airport
139268 deleteNodeAirport (_id : ID ! ): Boolean
140269 connectNodeContinentToNodeAirportEdgeContains (from_id : ID ! , to_id : ID ! ): Contains
141270 deleteEdgeContainsFromContinentToAirport (from_id : ID ! , to_id : ID ! ): Boolean
0 commit comments