Skip to content

Allow saving with custom objectId #1097

Closed
@JeromeDeLeon

Description

@JeromeDeLeon

Is your feature request related to a problem? Please describe.
This feature was already merged on Parse Server but I just tried it with this SDK and got the result of Object not found and upon looking up, ParseObject#L313 was the cause of it because if it detects an objectId being present, it will simply update the object hence the PUT method. Correct me if I'm wrong.

Describe the solution you'd like
Ability to set objectId without making an update to the non-existent record.

Describe alternatives you've considered
For now, we could just use REST API to manually create an object.

Additional context
I thought of a solution that we could check if it is new or not but looking up to isNew method, it checks whether this.id is present or not and unfortunately, hitting save will automatically replace this.id the objectId we assigned to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions