Proof of Concept using Ash
I am wondering if some of the Main functions can be put in the resources. Learned a lot and got a lot of help from Zach!
https://github.com/djgoku/poc
GitHub
GitHub - djgoku/poc: A Elixir Proof of Concept using the Ash Framework
A Elixir Proof of Concept using the Ash Framework. Contribute to djgoku/poc development by creating an account on GitHub.
7 Replies
Nice! Id say most of the functions in main.ex if not all of them could be implemented as actions, yes 🙂
Just had a brief skim though.
Ok, thanks for the skim.
Hey, nicely done!
If you're interested in cleaning up some of the functions in main, you can implement all the create_* functions in the code_interface of each resource.
Thank you! The thing that held me up from trying those actions was how I would pass things into those actions.
I'll have to look at the docs more on actions and code_interface.
Yep, you can pass
args
into the code interfaceThank you for that reference!