manage_relationship argument not relating primary key to resource
resource
changeset after
GroupMembership |> Ash.Changeset.for_create(:add_to_group, %{group: group_id})
I'm very confused, that id absolute exists and is a Group. When I do a different relationship which is coded almost identically it has a different data structure for the id:
11 Replies
what is the primary read action on the group resource?
default
š¤
what about
Ash.Type.cast_input(:uuid, "b6937067-651d-4385-8323-20f193f03cd9")
?
can I see the attributes section of Group
?lemme try that
do you have relationships set with
primary_key?: true
on Group
?
or anything that could make that a composite primary key. in iex Ash.Resource.Info.primary_key(Group)
Ah I think I have two relationships
š thats the issue there š
Do you want that to be the primary key of that resource or was it an accident?
It looks like an accident but not sure how that happened
Appreciate the quick help
š
my pleasure š