Ash FrameworkAF
Ash Framework8mo ago
2 replies
Straffern

Is there a way to load a nested parent relationship on a resource?

Is there a way to load a nested parent relationship on a resource?
Ie.
%MyResource{...
parent: %MyResource{...
parent: %MyResource{...
parent: nil
}
I essentially want to upsert a tree structure, via manage_relationship change on all leaf changesets.
I know the depth won't be anything major crazy.
Was this page helpful?