Skip to content

Commit 072bed1

Browse files
authored
Updated GraphRequest.ts for .count() scenario
Updated GraphRequest.ts to handle .count() when no parameter is specified
1 parent de8a55b commit 072bed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export class GraphRequest {
489489
* @param {boolean} isCount - The count boolean
490490
* @returns The same GraphRequest instance that is being called with
491491
*/
492-
public count(isCount: boolean): GraphRequest {
492+
public count(isCount: boolean = false): GraphRequest {
493493
this.urlComponents.oDataQueryParams.$count = isCount.toString();
494494
return this;
495495
}

0 commit comments

Comments
 (0)