-
Notifications
You must be signed in to change notification settings - Fork 55
Description
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.