Skip to main content

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

ParameterTypeDescription
pathstringResource in Microsoft Graph
queryODataQuery(Optional) OData Query ODataQuery
queryMode'basic' | 'advanced'(Optional) Mode to use while querying. Some features are only available at "advanced".

Returns:

AsyncIterable<T>