Theosaurus
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/23/2023 in #support
many_to_many update problem
Hey there! I could be totally wrong but I think from memory if something is stated as an
argument
you have to just pass it as App.Shop.Product.update!(banana, [yellow_tag])
rather than in a struct (I think), and additionally may need to include args: [tags]
in your code interface for the update action. Hopefully that helps? I could be totally wrong as I tend to always mix up argument
and accepts
and the correct syntax for calling them 😅13 replies