Skip to content

Nested Objects can't retrieve dates #8445

@magnacartatron

Description

@magnacartatron

New Issue Checklist

Issue Description

Can save nested objects, can't retrieve dates.

Steps to reproduce

const test = new Parse.Object("Test");
test.set("objectTypeColumnName", { date: new Date(), otherValue: true });
await test.save();

const testRes = new Parse.Query("Test").first();
console.log(testRes.get("objectTypeColumnName"));

Expected
{
date: 2023-02-25T04:44:46.848Z,
otherValue: true
}

Actual
{
date: {},
otherValue: true
}

  • Parse Server version: 6.0.0
  • Operating system: MacOS 13.2.1
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 5.0.1
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): JavaScript
  • SDK version: 4.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions