Ash FrameworkAF
Ash Framework3mo ago
7 replies
Iuri Madeira

Best Practices: Code Interfaces vs Resource Actions

Hi, everyone! I have one question: Should we use domain code interfaces from within resource actions? what are the best practices regarding when to use each of them?
I'm using code interfaces from Phoenix, but would like to know whether I should be using them from within resource actions too. I think it looks cleaner, but it feels weird to call the "outer" layer from an "inner" layer
Solution
Its fine if you call the public interface from the internals IMO.
Was this page helpful?