tellesleandro
AEAsh Elixir
•Created by tellesleandro on 9/29/2023 in #support
How to use Ash.Transform?
Sorry, I know this forum is archived but I think here I can get help faster than on Elixir Forum. I'm posting here the same question I've just posted there.
I need to shift the time_zone of some (DateTime) attributes from a resource. Ideally, I'd like to do it right after records are loaded from db. Is it possible? How?
4 replies
AEAsh Elixir
•Created by tellesleandro on 9/27/2023 in #support
Ash.Query getting started docs
I need some help to figure out how to translate Ecto queries into Ash ones. I've already read the docs, but I'm still stucked on simple "SELECT COUNT(*) FROM table" and "SELECT MIN(field) FROM table". Where do I find such explanation? Thanks in advance.
34 replies
AEAsh Elixir
•Created by tellesleandro on 9/26/2023 in #support
belongs_to does not add _id attributes do resource
The resource with attributes and relationships
does not have the attributes plano_id and pessoa_id.
If I try to insert a record, the insert command does not have the foreign keys:
21 replies
AEAsh Elixir
•Created by tellesleandro on 9/25/2023 in #support
Complex types (postgres)
Is it possible to create (and use) complex types like this
?
22 replies
AEAsh Elixir
•Created by tellesleandro on 9/25/2023 in #support
Postgres' range types
What's the best approach for adding tstzrange type column to a resource?
8 replies
AEAsh Elixir
•Created by tellesleandro on 9/22/2023 in #support
Exception in transformer AshAuthentication.Strategy.Custom.Transformer
Hi there.
I got an exception in transformer AshAuthentication.Strategy.Custom.Transformer when following the Authentication guide . Instead of User I set the resource name to Usuario.
mix.exs
Resource file
The resettable property of the struct strategy is nil at ash_authentication/strategies/password/transformer.ex:77.
I tried to set the property to a function, as shown in the docs (https://hexdocs.pm/ash_authentication/AshAuthentication.Sender.html), but I still get the error.
I hope someone can help me.
Thanks
38 replies