Is it possible to accept the resource struct as the code interface argument? Use case is I have an action that doesn't have any arguments and just toggles a value.
Solution
then that's the default behaviour, unless I'm missing something in your question
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.