To multiple records
Relationships that point to multiple records are displayed in the frontend in the Related Data and Explorer sections.

One-to-Many relations
In a one-to-many relationship, one record from a collection is connected to multiple records in another.
Think about countries and towns: a country has multiple towns, and each town belongs to a country.
Many-to-Many relations
In a many-to-many relation, three collections are used instead of two to build the relation.
This allows multiple records from one collection to be connected to multiple records from another.
For instance, on a movie recommendation website, each user can rate many movies, and each movie can be rated by many users. The three collections which are being used are users (the "origin" collection), ratings (the "through" collection), and movies (the "foreign" collection).
External relations
External relations allow defining collection which will only be available through the "Related Data" section or a given model.
Note that external relations do not support pagination.
Last updated
Was this helpful?