Hello Ash community, happy to be part of this family!
I’m running into an issue while building a knowledge base. Each entry in my knowledge base should be associated with one or more tags. I’ve set up three tables:
-
tags
(stores tag metadata) -
entries
(knowledge base items) -
entry_tags
(join table for many-to-many)
The problem: I’d like to select tags dynamically by name from a dropdown in AshAdmin. But this doesn’t work out of the box, because the Entry
resource doesn’t have a direct belongs_to
with Tag
—it only has a many_to_many
through EntryTag
. If I add a belongs_to
, I’d break 1NF and duplicate the relationship design.
What’s the recommended way in Ash to handle this? Ideally I’d like a clean dropdown (or multi-select) that shows tag names and correctly links them through the join table.
Any suggestions or best practices would be greatly appreciated!