spacer
Skip to content

Graph Messages (Mail)

More information can be found in the official Graph documentation:

Selective Imports Banner

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();