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)
@sadortun A little back history. Nested objects were originally supposed to be for simple objects as complex objects could be broken up into different fields and classes.
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
Seems to me that https://github.com/parse-community/Parse-SDK-JS/blob/master/src/ObjectStateMutations.js#L140
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: