One or multiple registry.ex in an Ash project?
Stack Overflow
One or multiple registry.ex in an Ash project?
https://ash-hq.org/docs/guides/ash/latest/tutorials/get-started proposes this file structure:
lib/
├─ helpdesk/
│ ├─ support/
│ │ ├─ registry.ex # <-----
│ │ ├─ resources/
│ │ │ ├─ ti...
2 Replies
If your resources have relationships, those related resources must be in the registry as well.
The file structure doesn't matter much, that's not the issue.
Responded on the SO post, the basic issue is that an api cannot have multiple registries.
You’re likely overriding the first registry with a second one