I think your first attempt was closer to the mark, but the syntax isn’t quite right.
The docs are a bit sparse, but looking at Aggregates — ash v3.29.3, I think something like exists(member_tags, query: [filter: tag_id == ^id]) might work?
I think your first attempt was closer to the mark, but the syntax isn’t quite right.
The docs are a bit sparse, but looking at Aggregates — ash v3.29.3, I think something like exists(member_tags, query: [filter: tag_id == ^id]) might work?