How to call graph api?

In a form, I need to call graph api to get the members of a group so that I can display who is a member of the group on the form.

For example
when the form opens I need to call to find who is a member of this group.

Dear @Rachel_Marshall_Cent,
Here's a brief example of using Graph API on a form - Retrieve user profile information — SharePoint forms

And here's how you can work with groups - directory objects - PnP/PnPjs