-
-
Notifications
You must be signed in to change notification settings - Fork 598
Closed
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
When updating multiple nested fields under the same object field using ParseObject.set
, all updates except for the last one are dropped.
Steps to reproduce
const obj = new Parse.Object("MyObject");
obj.set("a",{});
await obj.save();
obj.set("a.b", 5);
obj.set("a.c", 6);
Actual Outcome
obj.attributes
should be {a: {b:5, c:6}}
Expected Outcome
obj.attributes
is {a: {c:6}}
Environment
Server
- Parse Server version:
irrelevant
- Operating system:
Ubuntu 20.04
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
local, irrelevant
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
5.0.6
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
local
Client
- Parse JS SDK version:
alpha (commit d084ac9be058d9b13f8ac2bbf04615f76dc2800d)
Logs
mtrezza
Metadata
Metadata
Assignees
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed