Otion-Core/graphism

Document and test the :from option when defining computed relations

Open

#41 opened on Oct 15, 2021

 (0 comments) (0 reactions) (0 assignees)Elixir (1 fork)auto 404
documentationgood first issuetesting

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide