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.
JoinAshGraphql generated mutations are bypassing schema middleware
Assumption failed: Action does not correlate with an authentication strategy
change set_context(%{strategy_name: :password})
```
update :change_user_timezone do
argument :user_timezone, :string do...How to define a read method for preloading associations inside a resource?
has_many
posts. How do I use the read DSL to get an author by its ID and preload its associated posts?One way `has_many` relationships
How to represent an embedded schema in AshGraphql
attributes
DSL to expose this field in my AshGraphql query?
Here's the field in Ecto: embeds_one :details, Details
I tried this in the Ash attributes: attribute :details, :map
, but the GraphQL response had this error: Field "details" must not have a selection since type "JsonString" has no subfields.
...AshPostgres compilation error
no data in Ash.DataLayer.Simple
new ash_graphql version generates duplicate enums
AshGraphql.all_attributes_and_arguments()
returns all fields including the fields of embedded types. ...How can I add fields to the default AshAuthentication signup form?
Insert into Database without Form
%Ash.Error.Changes.Required{
Authentication with AshGraphQL for specific queries/mutations
nil
.
What I thought about doing is just add a policy to check if the actor is nil
or not to the queries/mutations that need to be logged, but I'm not sure if that is the right approach or if there is a better/correct way....Only change a few fields `ON CONFLICT` in an Upsert
upsert
. Its working and Ash generates the right query, however, I want Ash to not include a few fields in the ON CONFLICT
part.
This is the query Ash generates:
```sql...Concat with nil values
Manually adding argument to action in form before calling AshPhoenix.Form.submit
AshPhoenix.Form
to handle creation of a resource in LIveView.
In my resource, I added this action:
```elixir...custom statement constraint
(CaseClauseError) no case clause matching: #Ash.Changeset<api
add_user_timezone
is defined in user.ex
which is listed in MyApp.Accounts.Registry
. What am I missing?
```
current_user
|> Ash.Changeset.for_update(:add_user_timezone, %{...How to filter results when using keyset pagination?
How to get rid of ellipsis and see everything in IO.inspect()