Skip to content

Parse.Query.readPreference condition is missing in output of Parse.Query.toJSON #2464

@mtrezza

Description

@mtrezza

New Issue Checklist

Issue Description

The Parse.Query.readPreference condition is missing in the output of Parse.Query.toJSON().

Steps to reproduce

const q = new Parse.Query('Test');
q.readPreference('NEAREST');
const json = q.toJSON();

Actual Outcome

The returned JSON does not contain the read preference, but it does contain other conditions like Parse.Query.limit, etc.

Expected Outcome

  • Parse.Query.toJSON() should contain the read preference condition.
  • Parse.Query.fromJSON() should correctly parse the read preference condition.

Environment

Server

  • Parse JS SDK version: 6.0.0-alpha.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versiontype:ciCI related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions