Stefan Wintermeyer
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/24/2023 in #support
add_tag but unique
For the archive:
<1> Use with a PostgreSQL DB.
14 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/24/2023 in #support
add_tag but unique
How does that work code wise? https://ash-hq.org/docs/dsl/ash-resource#identities-identity-pre_check_with doesn't include an example.
14 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/24/2023 in #support
add_tag but unique
Do I use it wrong? Here's the tag resource:
With that I get this error:
14 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/24/2023 in #support
add_tag but unique
Can you give me an example of how to setup an identity? https://hexdocs.pm/ash/identities.html doesn't have any examples and the https://ash-hq.org internal search engine doesn't work right now.
Here's my tag resource:
14 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/24/2023 in #support
How to add_tag? Managing Relationships
Thank you! I did not see that.
6 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/23/2023 in #support
many_to_many update problem
Ahhh! Thanks! It works.
13 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/23/2023 in #support
many_to_many update problem
I draw a blank here. The code already says:
Where would I include an other create?
13 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/23/2023 in #support
many_to_many update problem
@Zach Daniel Can you help me out here? I'd like to record the tutorial.
13 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/19/2023 in #showcase
Ash Resource - 3 minute introduction

3 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/23/2023 in #support
many_to_many update problem
I tried
But I don't know how to do the
args: [tags]
thing and I am lost in the documentation.13 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/21/2023 in #showcase
Tutorial: belongs_to in 2 minutes
Thanks for the feedback. I'll add the version number.
About the speed: It is meant to be stopped, repeated and slowed down.
4 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with many_to_many tags?
Thanks! Solution for the archive:
18 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with many_to_many tags?
That results in this error:
18 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with many_to_many tags?
Here's the current code.
18 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with many_to_many tags?
This raises an error:
18 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with many_to_many tags?
Where exactly do I have to put this code?
18 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with many_to_many tags?
Is the later possible too?
18 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with a category id?
@barnabasj Since I am writing beginners documentation I'd like to know if I understand it right:
Code like
App.Shop.Product.create!(%{name: "Orange", price: 0.20, category: %{name: "Fruits"}}
is not the Ash way or is it?
I am not so much interested in what is possible by opening all escape hatches but what is the intended way of doing it. I have one new Category and I have one new Product. What is the fastest way of creating it? What is the Ash way of doing it?15 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with a category id?
Thanks @barnabasj!
For the archive. Here's the fixed code and how it's working:
This doesn't work:
Should it but I configured the resource wrong or shouldn't it never because this isn't ActiveRecord?
15 replies
AEAsh Elixir
•Created by Stefan Wintermeyer on 9/20/2023 in #support
How to create a product with a category id?
What is the right syntax for that? https://ash-hq.org/docs/dsl/ash-resource#relationships-belongs_to-attribute_writable- doesn't contain an example. This doesn't work:
15 replies