-
-
Notifications
You must be signed in to change notification settings - Fork 598
Closed
Labels
bounty:$100Bounty applies for fixing this issue (Parse Bounty Program)Bounty applies for fixing this issue (Parse Bounty Program)state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versiontype:featureNew feature or improvement of existing featureNew feature or improvement of existing feature
Description
Is your feature request related to a problem? Please describe.
This was already supported in the PServer, but in JS-SDK, it limits us to only perform either save or delete but not both.
Describe the solution you'd like
It would be better if we could constructr a batch operation like:
await Parse.Object.performTransaction(
[
{ method: "PUT", objects: [PObject] },
{ method: "DELETE", object: PObject },
{ method: "POST", objects: [PObject, PObject] }
],
{ transaction: true, useMasterKey: true }
);
and performs that sequentially.
Describe alternatives you've considered
Additional context
Also, using relations when doing batch operation is not allowed because you cannot add something to relation when it is new. I don't know if there's already a solution to this but my current implementation is to use forkJoin([DeleteObjects(), SaveObjects()])
using RxJS.
JeffGuKang, mdarens and ricmatsui
Metadata
Metadata
Assignees
Labels
bounty:$100Bounty applies for fixing this issue (Parse Bounty Program)Bounty applies for fixing this issue (Parse Bounty Program)state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versiontype:featureNew feature or improvement of existing featureNew feature or improvement of existing feature