How to create a second resource on a create action?

what is the best way yo create a second resource durning the creation of a first one? for example in a Workspace resource that should have a Wallet resource as has_one relationship
4 Replies
ZachDaniel
ZachDaniel2y ago
You can add an after_action hook. If you search the support forum/docs for after_action you should find some examples
Bananoid
BananoidOP2y ago
thanks
chriscox
chriscox2y ago
@Zach Daniel How to search the forum in https://ash-hq.org/forum/support ? Maybe I'm missing something but I don't see search anywhere for these forums?
Ash HQ
Ash Framework Forum
A declarative foundation for ambitious Elixir applications. Model your domain, derive the rest.
ZachDaniel
ZachDaniel2y ago
You can search them here in the discord, or you can check the “forum” box on the docs search interface (Cmd-K) on ash-hq 🙂 The search bar in the top right while in this forum channel will search the forum.

Did you find this page helpful?