-
-
Notifications
You must be signed in to change notification settings - Fork 69
feat: add create(), replace(), and update() to ParseObjects #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for opening this pull request!
|
@cbaker6 , I still need to have
But in that case I would still need to use Parse server 6.2.0, Parse-Swift 4.14.2 |
New Pull Request Checklist
Issue Description
Currently developers have to use
save()
orsaveAll()
toPOST/PUT
objects on a Parse Server. Depending on the configuration, save and saveAll determines what command to send to the server based on theobjectId
,createdAt
, or a combination of both.There should be methods to allow the developer to either
POST
orPUT
where the developer can handle any errors that may come up. This would make it easier for the developer to use a mixed environment of generating objectId’s on the client and server for different objects.Related issue: #n/a
Approach
Add
create()
(POST),replace()
(PUT), andupdate()
(PATCH),createAll()
,replaceAll()
, andupdateAll()
to allParseObject
's. Follows method discussed in #220 (comment).update()
andupdateAll()
are marked as internal methods until the server supports PATCH.Note: Only asynchronous methods using a completion handler, Combine, and async/await are added. No synchronous methods will be added as the developer should be using asynchronous for network calls.
TODOs before merging