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
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
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:
Test:
Test output:
The text was updated successfully, but these errors were encountered: