How to load a nested relationship with a tenant?
I'm a beginner with Ash and essentially I'd like to lookup an organization while loading some relationships, something like this:
(I only really need a single organization at the moment but I suppose the question is more general.)
However to load the user roles I have to specify the tenant (which is the organization itself) and I get this error:
How can I load the organization while also loading the relationships that needs the organization itself?
The organization and users live in the "public" schema while the user roles lives in a schema specified by the organization id.
The organization is specified with:
And the user role:
(I only really need a single organization at the moment but I suppose the question is more general.)
However to load the user roles I have to specify the tenant (which is the organization itself) and I get this error:
How can I load the organization while also loading the relationships that needs the organization itself?
The organization and users live in the "public" schema while the user roles lives in a schema specified by the organization id.
The organization is specified with:
And the user role:
