Thanks for posting in Q&A forum.
For the statement "graph v5+", this seems to indicate for Microsoft Graph API SDK version 5 and above.
If so, we have a tutorial written with .NET SDK version 7.0.102. for listing the contents of an inbox.
Further learning path / modules for exploring using Microsoft Graph for ASP.NET core development.
Also, for unread emails only include the filter:
https://graph.microsoft.com/v1.0/me/mailFolders/Inbox/messages?$filter=isRead ne true
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.Me.MailFolders["{mailFolder-id}"].Messages.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = "isRead ne true";
});
--please don't forget to upvote
and Accept as answer
if the reply is helpful--