AleksandrRogov / DynamicsWebApi

DynamicsWebApi is a Microsoft Dataverse Web API helper library for JavaScript & TypeScript
MIT License
268 stars 58 forks source link

Allow POST, PUT, PATCH and DELETE to be atomic on demand in Batch Requests #145

Closed AleksandrRogov closed 1 year ago

AleksandrRogov commented 1 year ago

Right now any POST, PUT, PATCH and DELETE will automatically be included into a Changeset which may not be useful in all situations.

Here are the tasks related to the issue:

The new logic must not break existing logic of converting requests into a changeset by default. Mainly because it's going to be a very significant breaking change.

AleksandrRogov commented 1 year ago

The idea is to add an additional property inChangeSet to RequestBase interface that will default to true. It has to be set to false by the developer to execute an operation individually inside a batch request.

There are other ideas that I have but I doubt that I am going to include those in a release of v2:

This ideas are up to debate. If anyone has any thoughts about it - let me know.