Skip to content
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

Nested Objects can't retrieve dates #8445

Closed
magnacartatron opened this issue Feb 25, 2023 · 5 comments · Fixed by #8446
Closed

Nested Objects can't retrieve dates #8445

magnacartatron opened this issue Feb 25, 2023 · 5 comments · Fixed by #8446
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@magnacartatron
Copy link

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
@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@dblythy
Copy link
Member

dblythy commented Feb 25, 2023

Should be fixed by #8446

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Feb 25, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.1.0-alpha.2

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.1.0-beta.2

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label May 1, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.1.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
4 participants