Ash FrameworkAF
Ash Frameworkโ€ข3y agoโ€ข
10 replies
moissela

How to make simple select count with Ash

Hi,
maybe a noob question here ๐Ÿ˜… but I'm wondering which is the right way of making a simple select count of my Users on a Postgres-based app.

I could do that with MyApi.count(MyResource) but on the docs that method belongs to the ambigous Ash.Filter.ShadowApi module.

I can't find anything else on the docs ๐Ÿคท๐Ÿผโ€โ™‚๏ธ

For context, I'm trying to make some filtered and unfiltered counts on my direct resource and not an aggregate count on related resources.
Was this page helpful?