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
_id either as source or target: cannot modify immutable property "_id"
Same source and target (must differ)
Attempt to move source to incompatible path
The last case occurs, for example when an attempt is madeto set a property on Array value: that is, target path points to something that is not possible to add: for example with
{ "x" : 3, "array" : [ 1 ] }
attempt to apply operation
{ "$rename" : { "x" : "array.x" } }
would fail. Same is true for paths "through" atomic fields; only (sub)documents have properties.
The text was updated successfully, but these errors were encountered:
Another general-purpose array operator to implement is
$rename
. Its semantics are similar to$unset
followed by$set
(if that was allowed), so that:Format is simple:
Following error modes exist:
_id
either as source or target: cannot modify immutable property "_id"The last case occurs, for example when an attempt is madeto set a property on Array value: that is, target path points to something that is not possible to add: for example with
attempt to apply operation
would fail. Same is true for paths "through" atomic fields; only (sub)documents have properties.
The text was updated successfully, but these errors were encountered: