pnp / pnpjs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs
https://pnp.github.io/pnpjs/
Other
763 stars 304 forks source link

Result of graph.users.paged() does not have property of 'value'. #2833

Closed fischkoder closed 11 months ago

fischkoder commented 11 months ago

What version of PnPjs library you are using

3.x

Minor Version Number

3.19.0

Target environment

SharePoint Framework

Additional environment details

Sharepoint web part, get authentication from context.

Question/Request

I am working on get the paging result by using graph.users.top().paged().

Based on the sample on the pnp.js/graph document, I saw the result can be easily accessed by .value . but I have check the return type of .paged(), it's a asyncIterable which does not have any property to get value directly. Is there any change in paged()? or Is the sample on the document just a pseudo code?

Thanks.

bcameron1231 commented 11 months ago

Hi. I think we may have accidently merged in future state code into the V3 branch.

We'll take a look and and chat internally, and reach back out to you shortly.

bcameron1231 commented 11 months ago

We're going to push a hotfix out to fix this. Apologies for the inconvenience.

bcameron1231 commented 11 months ago

Fix is in latest release 3.20.1

github-actions[bot] commented 11 months ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.