@@ -84,95 +84,101 @@ public async Task RequestMaxUsingNegativeOne()
8484 }
8585 }" ;
8686
87- // this resultset represents all books in the db.
88- JsonElement actual = await ExecuteGraphQLRequestAsync ( graphQLQuery , graphQLQueryName , isAuthenticated : false ) ;
8987 string expected = @"{
90- ""items"": [
88+ ""items"": [
9189 {
92- ""id"": 1,
93- ""title"": ""Awesome book""
90+ ""id"": 1,
91+ ""title"": ""Awesome book""
9492 },
9593 {
96- ""id"": 2,
97- ""title"": ""Also Awesome book""
94+ ""id"": 2,
95+ ""title"": ""Also Awesome book""
9896 },
9997 {
100- ""id"": 3,
101- ""title"": ""Great wall of china explained""
98+ ""id"": 3,
99+ ""title"": ""Great wall of china explained""
102100 },
103101 {
104- ""id"": 4,
105- ""title"": ""US history in a nutshell""
102+ ""id"": 4,
103+ ""title"": ""US history in a nutshell""
106104 },
107105 {
108- ""id"": 5,
109- ""title"": ""Chernobyl Diaries""
106+ ""id"": 5,
107+ ""title"": ""Chernobyl Diaries""
110108 },
111109 {
112- ""id"": 6,
113- ""title"": ""The Palace Door""
110+ ""id"": 6,
111+ ""title"": ""The Palace Door""
114112 },
115113 {
116- ""id"": 7,
117- ""title"": ""The Groovy Bar""
114+ ""id"": 7,
115+ ""title"": ""The Groovy Bar""
118116 },
119117 {
120- ""id"": 8,
121- ""title"": ""Time to Eat""
118+ ""id"": 8,
119+ ""title"": ""Time to Eat""
122120 },
123121 {
124- ""id"": 9,
125- ""title"": ""Policy-Test-01""
122+ ""id"": 9,
123+ ""title"": ""Policy-Test-01""
126124 },
127125 {
128- ""id"": 10,
129- ""title"": ""Policy-Test-02""
126+ ""id"": 10,
127+ ""title"": ""Policy-Test-02""
130128 },
131129 {
132- ""id"": 11,
133- ""title"": ""Policy-Test-04""
130+ ""id"": 11,
131+ ""title"": ""Policy-Test-04""
134132 },
135133 {
136- ""id"": 12,
137- ""title"": ""Time to Eat 2""
134+ ""id"": 12,
135+ ""title"": ""Time to Eat 2""
136+ },
137+ {
138+ ""id"": 13,
139+ ""title"": ""Before Sunrise""
138140 },
139141 {
140- ""id"": 13 ,
141- ""title"": ""Before Sunrise ""
142+ ""id"": 14 ,
143+ ""title"": ""Before Sunset ""
142144 },
143145 {
144- ""id"": 14 ,
145- ""title"": ""Before Sunset ""
146+ ""id"": 15 ,
147+ ""title"": ""SQL_CONN ""
146148 },
147149 {
148- ""id"": 15 ,
149- ""title"": ""SQL_CONN ""
150+ ""id"": 16 ,
151+ ""title"": ""SOME%CONN ""
150152 },
151153 {
152- ""id"": 16 ,
153- ""title"": ""SOME% CONN""
154+ ""id"": 17 ,
155+ ""title"": ""CONN%_CONN ""
154156 },
155157 {
156- ""id"": 17 ,
157- ""title"": ""CONN%_CONN ""
158+ ""id"": 18 ,
159+ ""title"": ""[Special Book] ""
158160 },
159161 {
160- ""id"": 18 ,
161- ""title"": ""[Special Book] ""
162+ ""id"": 19 ,
163+ ""title"": ""ME\\YOU ""
162164 },
163165 {
164- ""id"": 19 ,
165- ""title"": ""ME\\YOU ""
166+ ""id"": 20 ,
167+ ""title"": ""C:\\\\LIFE ""
166168 },
167169 {
168- ""id"": 20 ,
169- ""title"": ""C:\\\\LIFE ""
170+ ""id"": 21 ,
171+ ""title"": """"
170172 }
171- ],
172- ""endCursor"": null,
173- ""hasNextPage"": false
173+ ],
174+ ""endCursor"": null,
175+ ""hasNextPage"": false
174176 }" ;
175177
178+ // Note: The max page size is 21 for MsSql and 20 for all other data sources, so when using -1
179+ // this resultset represents all books in the db.
180+ JsonElement actual = await ExecuteGraphQLRequestAsync ( graphQLQuery , graphQLQueryName , isAuthenticated : false ) ;
181+
176182 SqlTestHelper . PerformTestEqualJsonStrings ( expected , actual . ToString ( ) ) ;
177183 }
178184
@@ -196,91 +202,96 @@ public async Task RequestNoParamFullConnection()
196202 }" ;
197203
198204 JsonElement actual = await ExecuteGraphQLRequestAsync ( graphQLQuery , graphQLQueryName , isAuthenticated : false ) ;
205+
199206 string expected = @"{
200- ""items"": [
207+ ""items"": [
201208 {
202- ""id"": 1,
203- ""title"": ""Awesome book""
209+ ""id"": 1,
210+ ""title"": ""Awesome book""
204211 },
205212 {
206- ""id"": 2,
207- ""title"": ""Also Awesome book""
213+ ""id"": 2,
214+ ""title"": ""Also Awesome book""
208215 },
209216 {
210- ""id"": 3,
211- ""title"": ""Great wall of china explained""
217+ ""id"": 3,
218+ ""title"": ""Great wall of china explained""
212219 },
213220 {
214- ""id"": 4,
215- ""title"": ""US history in a nutshell""
221+ ""id"": 4,
222+ ""title"": ""US history in a nutshell""
216223 },
217224 {
218- ""id"": 5,
219- ""title"": ""Chernobyl Diaries""
225+ ""id"": 5,
226+ ""title"": ""Chernobyl Diaries""
220227 },
221228 {
222- ""id"": 6,
223- ""title"": ""The Palace Door""
229+ ""id"": 6,
230+ ""title"": ""The Palace Door""
224231 },
225232 {
226- ""id"": 7,
227- ""title"": ""The Groovy Bar""
233+ ""id"": 7,
234+ ""title"": ""The Groovy Bar""
228235 },
229236 {
230- ""id"": 8,
231- ""title"": ""Time to Eat""
237+ ""id"": 8,
238+ ""title"": ""Time to Eat""
232239 },
233240 {
234- ""id"": 9,
235- ""title"": ""Policy-Test-01""
241+ ""id"": 9,
242+ ""title"": ""Policy-Test-01""
236243 },
237244 {
238- ""id"": 10,
239- ""title"": ""Policy-Test-02""
245+ ""id"": 10,
246+ ""title"": ""Policy-Test-02""
240247 },
241248 {
242- ""id"": 11,
243- ""title"": ""Policy-Test-04""
249+ ""id"": 11,
250+ ""title"": ""Policy-Test-04""
244251 },
245252 {
246- ""id"": 12,
247- ""title"": ""Time to Eat 2""
253+ ""id"": 12,
254+ ""title"": ""Time to Eat 2""
248255 },
249256 {
250- ""id"": 13,
251- ""title"": ""Before Sunrise""
257+ ""id"": 13,
258+ ""title"": ""Before Sunrise""
252259 },
253260 {
254- ""id"": 14,
255- ""title"": ""Before Sunset""
261+ ""id"": 14,
262+ ""title"": ""Before Sunset""
256263 },
257264 {
258- ""id"": 15,
259- ""title"": ""SQL_CONN""
265+ ""id"": 15,
266+ ""title"": ""SQL_CONN""
260267 },
261268 {
262- ""id"": 16,
263- ""title"": ""SOME%CONN""
269+ ""id"": 16,
270+ ""title"": ""SOME%CONN""
264271 },
265272 {
266- ""id"": 17,
267- ""title"": ""CONN%_CONN""
273+ ""id"": 17,
274+ ""title"": ""CONN%_CONN""
268275 },
269276 {
270- ""id"": 18,
271- ""title"": ""[Special Book]""
277+ ""id"": 18,
278+ ""title"": ""[Special Book]""
272279 },
273280 {
274- ""id"": 19,
275- ""title"": ""ME\\YOU""
281+ ""id"": 19,
282+ ""title"": ""ME\\YOU""
276283 },
277284 {
278- ""id"": 20,
279- ""title"": ""C:\\\\LIFE""
285+ ""id"": 20,
286+ ""title"": ""C:\\\\LIFE""
287+ },
288+ {
289+ ""id"": 21,
290+ ""title"": """"
280291 }
281- ],
282- ""endCursor"": null,
283- ""hasNextPage"": false
292+ ],
293+ ""endCursor"": null,
294+ ""hasNextPage"": false
284295 }" ;
285296
286297 SqlTestHelper . PerformTestEqualJsonStrings ( expected , actual . ToString ( ) ) ;
0 commit comments