Shorthand for code interface filters

Is there a handy shortcut for doing something like:
use Ash.Expr

Post.read! expr(title == "Nice")
use Ash.Expr

Post.read! expr(title == "Nice")
1 Reply
ZachDaniel
ZachDaniel3y ago
Currently the only way to do it:
Post.read!(query: Ash.Query.filter(Post, title == "Nice"))
Post.read!(query: Ash.Query.filter(Post, title == "Nice"))

Did you find this page helpful?