You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constobj=awaitParse.Object.extend('test').createWithoutData('20mMYzLTjx').fetch()// obj.get('a') === {} (my schema defaults a to {}obj.increment('a.b.c.d',1)awaitobj.save()
Actual Outcome
TypeError: Cannot read property 'd' of undefined at Object.estimateAttributes (.....parse-server\node_modules\parse\lib\node\ObjectStateMutations.js:234:28)
Expected Outcome
Path a.b.c.d get created and persisted
Failing Test Case / Pull Request
🤩 I submitted a PR with a fix and a test case.
🧐 I submitted a PR with a failing test case.
Environment
Server
Parse Server version: v4.5.0 / 3d76643286d41b954b6c8e2d6614657c891a31e7
Operating system: Win 10
Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local
Database
System (MongoDB or Postgres): Mongo
Database version: 4.4.4
Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): remote/self hosted
New Issue Checklist
Issue Description
This is a simpler case version of issue #6687. I'm not sure if i'm doing anything wrong, but i think this should work
I'm trying to increment a value of a newly created object.
Ex:
Steps to reproduce
Actual Outcome
Expected Outcome
Path
a.b.c.d
get created and persistedFailing Test Case / Pull Request
Environment
Server
v4.5.0 / 3d76643286d41b954b6c8e2d6614657c891a31e7
Win 10
local
Database
Mongo
4.4.4
remote/self hosted
Client
Js
2.17.0
Logs
The text was updated successfully, but these errors were encountered: