Ash Framework
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.
JoinAsh Framework
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.
JoinCan I reuse the AshPostgres filter conversion to Ecto for my own manual reads?
ManualRead
and got quite far, but now I'm trying to translate the Ash.Query
occurrences to Ecto.Query
and am out of my depth.
I also tried to find the place in AshPostgres, where they are converted but was quite lost.
Can anyone point me in the right direction to solve this?...code_interface not expose function
How to use AshPhoenix.Form with the default core_components file that comes with Phoenix 1.7?
mix phx.new
which means we need to change the way we use AshPhoenix.Form
to play nicely with the updated form components.
From what I gathered in some of the previous conversations, the way to do it in the new component should be as follows.
When calling <.simple_form />
, the :let
should removed so it would look like this:...Adding a embedded resource to a resource is failing
Nested form example
no case clause matching: [#Tweets.Item<...
no case clause matching: [#Tweets.Item<...
Phone number confirmation with Twilio
AshAuthentication
confirmation by email add-on with one that will use Twilio Verify API so I can verify the user's phone number.
I just finished it, so I was wondering if you guys could give your suggestions about the implementation and if you see any apparent problems with it:
So, the first step is the Twilio Verify API implementation, I used `Finch`` for that:...Makes change respect order
update
or create
action where I want to do a bunch of changes in order before the action runs:
```elixir
update :my_update do
......How to run something in the background after action?
How to set a default value for AshPhoenix.Form.for_action ?
AshPhoenix.Form.for_action
or AshPhoenix.Form.for_create
?...Customizing AshAuthentication.Phoenix
Remove register and password reset links from AshAuthentication.Phoenix sign-in page

Error with composite `{:array, :atom}` field
cannot load ``["admin"]`` as type {:array, {:parameterized, Ash.Type.Atom.EctoType, []}} for field :roles in #Crm.Accounts.User
The attribute looks like:...require authenticated user
How to do the LiveComponent preload example in Ash.Query?
Phoenix.LiveComponent
(https://hexdocs.pm/phoenix_live_view/Phoenix.LiveComponent.html#module-preloading-and-update) there is a section there that shows how to use preload/1
to solve the N+1 problem:
```elixir
def preload(list_of_assigns) do
list_of_ids = Enum.map(list_of_assigns, & &1.id)...Ash Way of Doing Password Hashing and Storage for Phoenix.
mix phx.gen.auth
will give you the some of the following in your_app/lib/your_app/accounts/user.ex
:
```elixir
defp validate_email(changeset) do
changeset...Sorting on a field in a relation
How to Delete Resource?
No actor, policy enforcement.

Updating array embeds
All values in the original array are destroyed, and all maps in the new array are used to create new records.
All values in the original array are destroyed, and all maps in the new array are used to create new records.
id
s. Is there a way to do the same using Ash?...AshPhoenix.Form for an Ash.Flow module instead of Ash.Resource
Ash.Flow
. Is it possible to initialize an AshPhoenix.Form
object for an Ash.Flow
module instead of the usual Ash.Resource
?