You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resources with circular relationships fail to load #453
Resources that form a cycle, especially where inheritance is involved, fail to load properly. Graphiti seems to always eagerly load related resource classes unlike ActiveRecord.
Implementation:
# person_resource.rbclassPersonResource < Graphiti::Resourceself.abstract_class=true# this line is not necessary but changes the errorhas_one:companyend# employee_resource.rbclassEmployeeResource < PersonResourceend# company_resource.rbclassCompanyResource < Graphiti::Resourcehas_many:employeesend
#492 made relation resources lazily constantized, which should resolve the circular-load failure. Can you confirm this still exists in the current version?
Activity
[-]Resources with circular references fail to load[/-][+]Resources with circular relationships fail to load[/+]jkeen commentedon Jul 29, 2026
#492 made relation resources lazily constantized, which should resolve the circular-load failure. Can you confirm this still exists in the current version?
camsteffen commentedon Jul 29, 2026
Sorry, I'm no longer involved with a project using graphiti. I believe my original example should be a sufficient test.
fix: let an abstract resource declare relationships
2.0.0-beta.10 CHANGELOG [skip ci]
2.0.0 CHANGELOG [skip ci]
github-actions commentedon Sep 1, 2026
🎉 This issue has been resolved in version 2.0.0 🎉
The release is available on:
v2.0.0Your semantic-release bot 📦🚀