Multitenancy with code interface on the domain?
So I have this:
Is it possible to set the tenant on the
MyApp.FlyingTrainingOrg.get_airplanes()
call?
I can right now query MyApp.FlyingTrainingOrg.Airplanes |> Ash.Query.set_tenant("some-id") |> Ash.read()
but I would prefer to use the code interface especially when performing cross-domain lookups.2 Replies
Solution
There is a
tenant
option to all code interfaces 🙂I knew this was something trivial... thank you 😅