spacer
Skip to content

@pnp/graph/operations

Provides capabilities related to rich long-running operations.

More information can be found in the official Graph documentation:

Selective Imports Banner

list site operations

import "@pnp/graph/sites";
import "@pnp/graph/operations";

const graph = graphfi(...);

// using getByUrl
const site = await graph.sites.getByUrl("tenant.sharepoint.com", "/sites/dev");

const ops = await site.operations();

// using site id
const ops2 = await graph.sites.getById("{site id}").operations();