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.
JoinWhat Is the Best Way to Load Related Data with GET Requests, Paginated Posts of a category?
media_limit and media_offset and i put it manually inside Ash.Query, but i think AshJson has better way?
```elixir...mix igniter.install ash_authentication_phoenix fails to compile
{:ash_authentication_phoenix, "~> 2.0 and < 2.11.0"},"Second Newest" in has_many
has_many relationship.
Grabbing the most recent is easy peasy:
```elixir ...Codegen keeps recreating foreign key
on_delete: delete. It keeps adding this in for every subsequent codegen even though this was previously migrated. Is there possible circular logic?
```
def up do
drop constraint(:github_installs, "github_installs_app_install_id_fkey")...Suggestion how to add a title and description to each change in AshPaperTrail
Ash GraphQL Subscriptions
Constantly having to sign in
Authentication error
current_user: user on my conn but it appears ash is doing something differentGraphQL input type with `Ash.Changeset.manage_relationship` instead of `change manage_relationship(`
File resource with a has_one :image relationship...Populate relationships in autogenerated liveviews
ash_phoenix generator, I end up with something like this in the image. Is there a way of populating the entries that are foreign keys with the actual content of the resource? Or is that something that must be done manually for every liveview?
In my example, I would switch the UUID input with a dropdown of province names in the UI...
mix ash_postgres.gen.resources is slow for large codebases
Code interface struct argument
For non data layer backed resources, prefer manual reads or generic actions to retrieve?
Modifying the argument clashes with AshCloak changing the argument's type
Platform with an attribute called credentials I want to have encrypted. This attribute is a union of embedded resources (representing credentials for different platforms).
I have a change that sets the type attribute on the credentials union changeset to the same value as the platform.type is set - to avoid having to pass the same value twice and ensure the credentials type matches the platform type.
After adding the AshCloak encryption, it replaces my argument :credentials, :map with its own argument typed as a union.This causes my change to fail, because:...How to set user as actor after login?
sign_in_with_password action provided by AshAuthentication, I would like to set the loaded user as an actor so that it is possible to apply policies and load relationships already at login.Changing attributes in action
expr() , but i get an InvalidAttributeError with the hint string_downcase(nil)
```ex
create :create do
accept [:name]...How to write a policy to ensure the user belongs to the tenant through a membership relation?
Anonymous Function Queries (Preparations)
Loading data from an external API for a calculation
Flattening Polymorphic Relationships in Ash GraphQL
bankAccounts, I get something like this:...