Skip to content

Allow field name with underscore prefix in Parse.Object.set #2474

Closed
@mtrezza

Description

@mtrezza

New Feature / Enhancement Checklist

Current Limitation

Currently, an error is thrown when setting a field name with underscore prefix in Parse.Object.set. Historically that made sense as these are Parse Server-internal fields. However, with the introduction of access scopes, internal fields can be read from and written to.

Feature / Enhancement Description

The Parse JS SDK should allow sending internal fields to Parse Server, which will then handle the request accordingly. This may not only be relevant for Parse.Object.set but also for Parse.Query conditions on internal fields.

Example Use Case

const obj = new Parse.Object('Test');
obj.set('_internalField', value);

Alternatives / Workarounds

Make a REST API request to avoid the Parse JS SDK restriction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versiontype: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