I have a situation where I want to take a handful of resources in one domain and represent them in another. In the second domain they're the "public" versions. Now, I know that Ash has the
public?
public?
options but for our purposes these are not granular enough (although I might be able to make this work if forced.
Is there some kind of pattern for having multiple resources point at the same data source? In my case, the public stuff is all read only. Any mutations would be delegated.
Honestly, I'm not even sure if this is the best way to handle this. I'm thinking maybe something at the pubic API boundary might be the right answer where I opt in some fields but... before I did anything I wanted to know if there was maybe a blessed way to handle this that I hadn't seen before.
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.