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.
JoinError Loading 3 `no_attributes?: true` nested relationships
Grandpappy > has_many > Parent > has_many > Child > has_many Toy
Grandparent
also has_many :grandchild_toys
via a no_attributes?: true
relationship:...Single File Ash Authentication
AshGraphQL bulk operation
ash.codegen --dev & ash_ai / vector attr type
ash_ai
thing or an ash.codegen --dev
with vectors thing, (I'm guessing the latter) but my project is deadlocked now since it wants to add this:
```use Ecto.Migration
def up do...AshGraphQL mutation with metadata
:sign_upload_url
that will return a metadata :upload_url
, however I can't make it return the metadata from mutationTesting liveviews requiring users to be logged in.
** (KeyError) key :token not found in: %{selected: [:id, :role, :email, :updated_at, :inserted_at, :organization_id]}
when I try to create a user and sign it in for the test.
this is the test:
...Zipper replace and Rewrite
Sourceror.Zipper.replace
replaced the third argument with a module that I will also create.
I was thinking of doing like a git diff, which I think diff_and_yes?
function does. But I can't figure out how does this relate to rewrite/source.
...Igniter.do_or_dry_run
before_action in bulk_create
Invalid default values

Shared Validations
User
resource that has an email
that has format and length requirements. Say there was a second resource where I wanted to share those same validations. Where would I store that? Normally I would put it in the MyApp.Accounts.User.Validations.Email
module, but I'm not sure if that's appropriate to share across resources as a validation. The only alternative I can think of is having something like `MyApp.Accounts.Shared...MyApp.Domain.Validations...
Best way to run bulk ops in a transaction
Does `mix ash.codegen` generate drop migrations for deleted resources
mix ash.codegen
says everything is up-to-dateThe domain Foo.Bar requires that an actor is provided at all times and none was provided.
main
.
We have our domains set up like:
```elixir
authorization do...main
Having some trouble with a bulk update
Add value to manage_relationship input from current resource
AshGraphQL bulk upsert
create
macro, My main concern is argument type generation, if not for that, I could write a custom handler, Is there a better way to handle this?manage_relationship: Get changes in related records
Invoice
resource has many Item
s. Every item calculates its total in a change. I want to calculate the sum of those totals in the invoice but cannot find a way to read the full items, only the input. How can I do this?
```elixir
argument :items, {:array, :map}, allow_nil?: false
change manage_relationship(:items, type: :create)...Reactor persistence and user tasks
Having trouble getting started with Ash

How to model context based multitenancy?
global? true
I can log in without knowing the tenant, but I'm not sure what the best strategy to fetch the tenant into after - or during - sign in, given the current_user has no tenant data
- If I use global? false
I need the tenant info before sign in, which can be work. I just need to figure it out how to build the magic link with the tenant subdomain - probably a phoenix question though.
Should I define my user resource as?...