AE
Ash Elixir•3y ago
dj_goku

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
ZachDaniel
ZachDaniel•3y ago
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.
dj_goku
dj_gokuOP•3y ago
Ok, thanks for the skim.
dblack
dblack•3y ago
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.
dj_goku
dj_gokuOP•3y ago
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.
dblack
dblack•3y ago
Yep, you can pass args into the code interface
dblack
dblack•3y ago
Ash HQ
Ash.Resource
View the documentation for Ash.Resource on Ash HQ.
dj_goku
dj_gokuOP•3y ago
Thank you for that reference!

Did you find this page helpful?