Graph Messages (Mail)¶
More information can be found in the official Graph documentation:
Get User's Messages¶
import { graphfi } from "@pnp/graph";
import "@pnp/graph/users";
import "@pnp/graph/messages";
const graph = graphfi(...);
const currentUser = graph.me;
const messages = await currentUser.messages();