You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Push values which are not of key-value structure.
280
+
Example-> Handle an invalid input->.query(123) and let the Graph API respond with the error in the URL*/this.urlComponents.otherURLQueryOptions.push(queryDictionaryOrString);
281
+
}
282
+
283
+
returnthis;
284
+
}
285
+
286
+
/**
287
+
* @private
288
+
* Parses the query parameter of string type to set the urlComponents property of the GraphRequest object
289
+
* @param {string} queryParameter - the query parameters
* To add query string for filter OData Query param
546
+
* To add query string for filter OData Query param. The request URL accepts only one $filter Odata Query option and its value is set to the most recently passed filter query string.
456
547
* @param {string} filterStr - The filter query string
457
-
* @returns The same GraphRequest instance that is being called with
548
+
* @returns The same GraphRequest instance that is being called with, after adding the $filter query
* To add criterion for search OData Query param. The request URL accepts only one $search Odata Query option and its value is set to the most recently passed search criterion string.
467
558
* @param {string} searchStr - The search criterion string
468
-
* @returns The same GraphRequest instance that is being called with
559
+
* @returns The same GraphRequest instance that is being called with, after adding the $search query criteria
* To add number for top OData Query param. The request URL accepts only one $top Odata Query option and its value is set to the most recently passed number value.
478
569
* @param {number} n - The number value
479
-
* @returns The same GraphRequest instance that is being called with
570
+
* @returns The same GraphRequest instance that is being called with, after adding the number for $top query
480
571
*/
481
572
publictop(n: number): GraphRequest{
482
573
this.urlComponents.oDataQueryParams.$top=n;
@@ -485,9 +576,9 @@ export class GraphRequest {
485
576
486
577
/**
487
578
* @public
488
-
* To add number for skip OData Query param
579
+
* To add number for skip OData Query param. The request URL accepts only one $skip Odata Query option and its value is set to the most recently passed number value.
489
580
* @param {number} n - The number value
490
-
* @returns The same GraphRequest instance that is being called with
581
+
* @returns The same GraphRequest instance that is being called with, after adding the number for the $skip query
491
582
*/
492
583
publicskip(n: number): GraphRequest{
493
584
this.urlComponents.oDataQueryParams.$skip=n;
@@ -496,9 +587,9 @@ export class GraphRequest {
496
587
497
588
/**
498
589
* @public
499
-
* To add token string for skipToken OData Query param
590
+
* To add token string for skipToken OData Query param. The request URL accepts only one $skipToken Odata Query option and its value is set to the most recently passed token value.
500
591
* @param {string} token - The token value
501
-
* @returns The same GraphRequest instance that is being called with
592
+
* @returns The same GraphRequest instance that is being called with, after adding the token string for $skipToken query option
* To add boolean for count OData Query param. The URL accepts only one $count Odata Query option and its value is set to the most recently passed boolean value.
511
602
* @param {boolean} isCount - The count boolean
512
-
* @returns The same GraphRequest instance that is being called with
603
+
* @returns The same GraphRequest instance that is being called with, after adding the boolean value for the $count query option
0 commit comments