Skip to main content
Version: Next

MicrosoftGraphClient.requestCollection()

Home > @backstage/plugin-catalog-backend-module-msgraph > MicrosoftGraphClient > requestCollection

Get a collection of resource from Graph API and return an AsyncIterable of that resource

Signature:

requestCollection<T>(path: string, query?: ODataQuery, queryMode?: 'basic' | 'advanced'): AsyncIterable<T>;

Parameters

Parameter

Type

Description

path

string

Resource in Microsoft Graph

query

ODataQuery

(Optional) OData Query ODataQuery

queryMode

'basic' | 'advanced'

(Optional) Mode to use while querying. Some features are only available at "advanced".

**Returns:**

AsyncIterable<T>