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
When using Entity.put it populates the sk2 as expected,
However if I call Entity.update to update any attribute sk2 will become empty. This happens even if the metadata attribute is untouched.
If I move the firstName and lastName attributes out of the metadata map and assign them as individual attributes the sortkey is updated without issue. Is using nested attributes in default not supported? Or am I perhaps missing a step somewhere that makes this possible?
The text was updated successfully, but these errors were encountered:
Update: This only happens when using the $set operator. If I pass the entire metadata object into the update function, the default is triggered and updated accordingly.
So, I have my secondary index's sort key set up as follows:
When using
Entity.put
it populates thesk2
as expected,However if I call
Entity.update
to update any attributesk2
will become empty. This happens even if themetadata
attribute is untouched.If I move the
firstName
andlastName
attributes out of themetadata
map and assign them as individual attributes the sortkey is updated without issue. Is using nested attributes indefault
not supported? Or am I perhaps missing a step somewhere that makes this possible?The text was updated successfully, but these errors were encountered: