I want to get a list of items from a SharePoint list, and display them in a specific way in SPFx webpart. I could use PnPJS to get Text and Number fields, but for the Author field, I am only getting the ID.
I'd like to get some other info, like email address, display name, and user image. My code now looks like this:
sp.web.lists.getByTitle('Projects').items.get().then(items => {
//console.log(items)
})
However I am getting something like this:
How can I use AuthorId to get more info about that user?