Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 531 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 531 Bytes

msgraph-helper

Simplifies usage of the MSGraph client in your SPFX solutions.

Usage

Import the helper:

import MSGraph from 'msgraph-helper';

In your main webpart or extension in the onInit function, add the following:

 await MSGraph.Init(this.context.msGraphClientFactory);

Anywhere in your soluton you can now do:

import MSGraph from 'msgraph-helper';

let memberOf = await MSGraph.Get('/me/memberOf');

The helper supports Get, Patch, Put and Delete.