rapidfsub
AEAsh Elixir
•Created by rapidfsub on 7/24/2023 in #support
Need a feature for customizing error message.
i.e. in string type, match constraint will return error message "must match the pattern %{regex}".
But, showing regex in user interface is not a good experience for users.
I need to customize error messages.
4 replies
AEAsh Elixir
•Created by rapidfsub on 5/1/2023 in #support
After spark major update, deep preload not working.
Sorry for short description only.
With spark 0.4.12, 2 or more depth preload is working fine, but with spark 1.1.4 only 1 depth preload works.
i.e.)
- resource A
has one resource B
- resource B
belongs to resource A
many to many resource C through resource D
- resource D
belongs to resource B
belongs to resource C
with this resources,
A |> Api.read(load: [b: :c])
returns empty :c.
however
B |> Api.read(load: :c)
returns correct :c.
5 replies
AEAsh Elixir
•Created by rapidfsub on 4/12/2023 in #support
Ash and AshPhoenix error key needs to be "foreign_resource_id", not "foreign_resource"..
There is a resource "A", and it includes
belongs_to :foreign_resource, ForeignResource
, and foreign_resource_id
column.
In phoenix liveview form, after validation I expect error with key "foreign_resource_id" needs to be exist, but only "foreign_resource" error exists.
Can I get error with key "foreign_resource_id"?8 replies
AEAsh Elixir
•Created by rapidfsub on 4/10/2023 in #support
Ash Philosophy
"Declarative, Introspectable, Derivable"
1. "Introspectable" is related to
Ash.Resource.Info
module? The "Introspectable" characteristic is usually meaningful when developing library?
2. Does "Derivable" means "the execution of application code written with ash could be easily predicted."?
I am preparing an ash in-house seminar, so I need to understand about this.
Would you explain more detail?5 replies