Otion-Core/graphism

Document and test the :from option when defining computed relations

Aperta

#41 aperta il 15 ott 2021

 (0 commenti) (0 reazioni) (0 assegnatari)Elixir (1 fork)auto 404
documentationgood first issuetesting

Metriche repository

Star
 (0 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor