pnp / pnpjs

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

SharePoint REST Batching #2933

Closed anthonywhite closed 7 months ago

anthonywhite commented 7 months ago

What version of PnPjs library you are using

3.x

Minor Version Number

Any

Target environment

SharePoint Framework

Additional environment details

Any

Question/Request

More of a question about SharePoint, but I'm guessing the smart folks in PnPJSville will know...is JSON batching supported on the V2 SharePoint REST API? Or only on Graph API? If yes, is that documented somewhere?

juliemturner commented 7 months ago

I'm not sure I totally follow this question.. yes batching is supported and has been for some time... https://pnp.github.io/pnpjs/concepts/batching/

anthonywhite commented 7 months ago

Hi @juliemturner, thanks - I get that PnPJS supports batching, what I was trying to ask is whether SharePoint REST V2.0 supports it, and especially if it supports the JSON format batching that Graph has now (as documented here) - which makes a lot more sense to me than the frankly awful MIME-based batch syntax of V1.

But I have just been told by MS support that JSON batch is Graph-only for now and the foreseeable. I suggested they start making this sort of divergence clearer with an update to this page...

github-actions[bot] commented 7 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.