Testing `filter expr` inside `many_to_many` relation
Based on the help of Zach from https://github.com/ash-project/ash_json_api/pull/392#issuecomment-3417372205
I have a relation like this
For testing i did like this, and it works
But for testing
nil tenant_id, i am doing like this
I get this error, even with Ash.load without !
My question is, the filter expr(is_nil(^actor(:tenant_id))) is working correctly? and my main problem is how can have it as tupple instead of database level error
Thank you in advance1 Reply
Solution
is_nil(type(^actor(:id), :uuid))