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
Hi,
I have a crdt Map which contains a set as shown below {:map, [{{"images", :set}, ["1.png"]}, {{"user_id", :register}, "nav"}], [], [], │.***************delete *********** <<131, 108, 0, 0, 0, 1, 104, 2, 109, 0, 0, 0, 12, 35, 9, 254, 249, 42, 2, 65, │"/var/folders/2r/1vc2nqzx5d95vg57rrs1v5r40000gn/T//briefly-1526/briefly-112687-902595-2/rin_1/image.jpeg" 179, 0, 1, 17, 139, 97, 5, 106>>}
I want to delete values from this nested set (named "images"). somehow I am not able to achieve this.
I tried updated in the crdt map with a new set altogether but it does not seems to be working. set = Set.new updated_crdt = Map.put(crdt, "images", set) Riak.update(u_crdt, "media", "media", "nav")
I get below error: {:error, :unmodified}
Any help is much appreciated.
The text was updated successfully, but these errors were encountered:
naveen-negi
changed the title
Updating set nested within CRDT Map.
Deleting value for nested CRDT SET
May 13, 2018
Hi,
I have a crdt Map which contains a set as shown below
{:map, [{{"images", :set}, ["1.png"]}, {{"user_id", :register}, "nav"}], [], [], │.***************delete *********** <<131, 108, 0, 0, 0, 1, 104, 2, 109, 0, 0, 0, 12, 35, 9, 254, 249, 42, 2, 65, │"/var/folders/2r/1vc2nqzx5d95vg57rrs1v5r40000gn/T//briefly-1526/briefly-112687-902595-2/rin_1/image.jpeg" 179, 0, 1, 17, 139, 97, 5, 106>>}
I want to delete values from this nested set (named "images"). somehow I am not able to achieve this.
I tried updated in the crdt map with a new set altogether but it does not seems to be working.
set = Set.new updated_crdt = Map.put(crdt, "images", set) Riak.update(u_crdt, "media", "media", "nav")
I get below error:
{:error, :unmodified}
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: