Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Create relationship with itself - Ash Framework
AF
Ash Framework
โข
3y ago
โข
6 replies
Blibs
Create relationship with itself
How can we add a relationship from some resource to itself
?
For example
, let
's say I have a
User
User
resource and I add a feature that an user can create another user
, meaning that I want to add a field called
created_by
created_by
and
created_by_id
created_by_id
which is also an
User
User
Ash Framework
Join
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
2,193
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Using manage_relationship with bulk_create
AF
Ash Framework / support
10mo ago
Create has_one relationship with flexible resource type
AF
Ash Framework / support
4y ago
Example of :create action with simultaneous assignment of relationship
AF
Ash Framework / support
4y ago
destroy + create behavior on has_one relationship
AF
Ash Framework / support
9mo ago