Anonymous Function Queries (Preparations)
I can't seem to get the syntax right, what am I doing wrong?
It yells at me for the
org_id
var and use of the pin operator. I tried without (org_id: id
) and got a different error.2 Replies
I got this working in a separate module. I don't understand why it doesn't work in an anon. func with a resource's global preparations, though.
Would also appreciate an explanation for why
nil
checks are necessary in these if anyone knows.🤔 I thought we fixed that, but in preparations,
Ash.Query
is required automatically
I thought that was the case for resources too, but perhaps not
Yeah, it should be requiring Ash.Query
AFAICT
are you on a recent version of Ash?