Otion-Core/graphism

Document and test the :from option when defining computed relations

开放

#41 创建于 2021年10月15日

 (0 条评论) (0 个反应) (0 位负责人)Elixir (1 个派生)auto 404
documentationgood first issuetesting

仓库指标

星标
 (0 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Eg. given this schema:

entity :user do
  ...
end

entity :blog do
  has_many(:posts)
end

entity :post do
  belongs_to(:blog)
  belongs_to(:user, 
    modifiers: [:computed],
    from: :user ## <--- this
end

贡献者指南