fummmp
AEAsh Elixir
•Created by fummmp on 1/28/2023 in #support
Create Resource without relation
Hey guys, I'm dipping my toes into Ash and try to build a small thing, but now I'm stuck. I created a resource and a relationship. I want to create the resource, but the relationship can be empty. But when I try to create the resource, I get this error:
The resource is defined as:
And the corresponding relation:
I can't figure out, what I'm doing wrong, because it works like this in the getting started guide: https://ash-hq.org/docs/guides/ash/latest/tutorials/get-started#working-with-relationships. I'm sure I'm missing something obvious...
34 replies