This is the official documentation of the agent_ruby Ruby agent.
agent_ruby
A join is used to combine rows from two or more tables, based on a related column between them.
In Forest Admin, relations are defined as fields and are traversable in only one direction.
Four join types are available: ManyToOne, ManyToMany, OneToMany, and OneToOne.
ManyToOne
ManyToMany
OneToMany
OneToOne
origin[foreignKey] == foreign[foreignKeyTarget]
origin[originKeyTarget] == foreign[originKey]
origin[originKeyTarget] == through[originKey] && though[foreignKey] == foreign[foreignKeyTarget]
Last updated 1 year ago