Skip to content

Commit c3c1361

Browse files
committed
Add experimental comments on enableinfilter
1 parent 9af36b0 commit c3c1361

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/internal/Get-MsGraphResults.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<#
22
.SYNOPSIS
33
Query Microsoft Graph API
4+
.PARAMETER EnableInFilter
5+
Enables in filter by in on ids for requried uniqueIds; $filter={previous filter} and id in ({csv with ids})
6+
Should be more flexible than GetByIds, scalability to be tested to eventually replace getbyids
7+
This filter is currently experimental and will be subject to future change (move to DisableInFilterBatching).
48
.EXAMPLE
59
PS C:\>Get-MsGraphResults 'users'
610
Return query results for first page of users.
@@ -90,6 +94,11 @@ function Get-MsGraphResults {
9094
)
9195

9296
begin {
97+
98+
if ($EnableInFilter) {
99+
Write-Verbose "EnableInFilter switch used: this filter is currently experimental and will be subject to future change (move to DisableInFilterBatching)"
100+
}
101+
93102
[uri] $uriGraphVersionBase = [IO.Path]::Combine($GraphBaseUri.AbsoluteUri, $ApiVersion)
94103
$listRequests = New-Object 'System.Collections.Generic.Dictionary[string,System.Collections.Generic.List[pscustomobject]]'
95104
$listRequests.Add($uriGraphVersionBase.AbsoluteUri, (New-Object 'System.Collections.Generic.List[pscustomobject]'))

0 commit comments

Comments
 (0)