on its parent relationship (a scan has many issues), I get an invalid filter reference error:
#scan.ex has_many :unapproved_node_issues, NodeIssue do public? true filter expr(has_sitewide_approved_match? != true) end
#scan.ex has_many :unapproved_node_issues, NodeIssue do public? true filter expr(has_sitewide_approved_match? != true) end
The specific error is:
* ** (MatchError) no match of right hand side value: {:error, [%Ash.Error.Query.InvalidFilterReference{field: :target, simple_equality?: nil, splode: Ash.Error, bread_crumbs: [], vars: [], path: [:filter], stacktrace: #Splode.Stacktrace<>, class: :invalid}]}
* ** (MatchError) no match of right hand side value: {:error, [%Ash.Error.Query.InvalidFilterReference{field: :target, simple_equality?: nil, splode: Ash.Error, bread_crumbs: [], vars: [], path: [:filter], stacktrace: #Splode.Stacktrace<>, class: :invalid}]}
:target
:target
is just a simple string attribute. Is it not possible to do what I'm trying to do? Halp?
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.