Skip to content

Commit 6a12f68

Browse files
committed
Change GraphRequest.count default value to true
1 parent a95a762 commit 6a12f68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GraphRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class GraphRequest {
272272
}
273273
}
274274
} else {
275-
/*Push values which are not of key-value structure.
275+
/*Push values which are not of key-value structure.
276276
Example-> Handle an invalid input->.query(123) and let the Graph API respond with the error in the URL*/ this.urlComponents.otherURLQueryOptions.push(queryDictionaryOrString);
277277
}
278278

@@ -294,7 +294,7 @@ export class GraphRequest {
294294
const paramValue = queryParameter.substring(indexOfFirstEquals + 1, queryParameter.length);
295295
this.setURLComponentsQueryParamater(paramKey, paramValue);
296296
} else {
297-
/* Push values which are not of key-value structure.
297+
/* Push values which are not of key-value structure.
298298
Example-> Handle an invalid input->.query(test), .query($select($select=name)) and let the Graph API respond with the error in the URL*/
299299
this.urlComponents.otherURLQueryOptions.push(queryParameter);
300300
}
@@ -598,7 +598,7 @@ export class GraphRequest {
598598
* @param {boolean} isCount - The count boolean
599599
* @returns The same GraphRequest instance that is being called with, after adding the boolean value for the $count query option
600600
*/
601-
public count(isCount: boolean = false): GraphRequest {
601+
public count(isCount: boolean = true): GraphRequest {
602602
this.urlComponents.oDataQueryParams.$count = isCount.toString();
603603
return this;
604604
}

0 commit comments

Comments
 (0)