Why are you using a type bag? The whole purpose of bag is to allow multiple elements with the same key. It will only not add a new element if it is equal to an existing one.
Robert On Monday, 23 May 2016 17:22:02 UTC+2, Federico Carrone wrote: > > Hi, > > I can't find an easy way of updating a mnesia record in an mnesia table of > type bag. When I do a write of the new record it adds a new record instead > of updating it. I am using Amnesia to work with mnesia. Any idea of what > I can do? > > Regards, > Federico. > -- You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/8f3672dd-4fa8-4bae-9dd1-aebf6306946e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
