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.
JoinDoes `AshPostgres` support partitions? i.e. Schema-based multitenancy
How to add authorization to filter nested data
Multiple Tenant Resources
Organization and Establishment. I'm using the new scope feature and the value for current_tenant is a map containing both tenants. I need to provide an Ash.ToTenant implementation that extracts the correct tenant depending on the resource being queried.
I've tried this:
```elixir...Ash.Reactor - Transform results for `initial` or `argument`
create or bulk_create step? Or is it better to have a separate transform step and use its result as the initial for create or bulk_create step?
API Call step -> Transform Results to Resource attrs -> Create or Bulk Create step...Is it possible to list and select the relationship in the Admin resource creation form?

ash notifier pubsub question
JSON API raw response
:zlib.gzip(). But Ash JSON API tries to encode it with Jason and raises an error.
How do I tell it to return the raw response as is?...AshPhoenixForm not executing action on submit
Understanding indexes
:id attribute always indexed?
2. If one would like to make a partial index like [:user_id, :is_active] we should use custom_indexes inside the postgres definition, right? - would this then also be usable by queries that only filter on :user_id (but not filtering on the :is_active )?...invalid_field: InvalidField | Invalid field for type user: name

indeterminate_datatype with fragment using the PosGIS
ERROR 42P18 (indeterminate_datatype) could not determine data type of parameter $1 and dont really know why its happening, i tried on direct sql query and works well with the format and returns the polygon, so dont know why fails with on the format
i think that maybe its injecting like POLYGON(("latitude longitude,latitude longitude") and maybe quotes its making some conflict but dont really know, same query with same data but in direct sql its working
```elixir...How do I use a schema macro in an extension?
:uuid_v7_primary_key attribute to a resource.
Adding an attribute via a macro:
This is an antipattern but it’s a small example....Ash.Resource.Builder.add_new_attribute(dsl_state, ....)Advice for policy simplicity
define :foo, default_options: [authorize?: false]Ash AI vector_cosine_distance
vector_cosine_distance as shown here https://github.com/ash-project/ash_ai?tab=readme-ov-file#using-the-vectors, the compiler can't find the function. I also can't find anything with that name in the ash_ai repo. How does this work?How to call actions on an embedded resource with code interface?
Igniter crash
How to compose read actions?
Custom error strings
CoreComponents.translate_error/1 function in the Phoenix 1.7 project template?Sorting error: NoSuchField
(MatchError) no match of right hand side value: {:error, %Ash.Error.Invalid{errors: [%Ash.Error.Query.NoSuchField{resource: MyApp.Ash.Accounts.UserUpload, field: "uploaded_file_name", splode: Ash.Error, bread_crumbs: [], vars: [], path: [:sort], stacktrace: #Splode.Stacktrace<>, class: :invalid}]}}
(MatchError) no match of right hand side value: {:error, %Ash.Error.Invalid{errors: [%Ash.Error.Query.NoSuchField{resource: MyApp.Ash.Accounts.UserUpload, field: "uploaded_file_name", splode: Ash.Error, bread_crumbs: [], vars: [], path: [:sort], stacktrace: #Splode.Stacktrace<>, class: :invalid}]}}
Calculation returning array of strings