This is the official documentation of Forest Admin Cloud.
In Forest Admin, relationships link Collections, structuring data into a interconnected architecture beyond simple presentations.
By default, relationships are automatically discovered and configured from the connected data sources, eliminating the need for manual definition.
However, you can also create custom relationships between two different collections, from possibly separate data sources. This lets Forest Admin handle these links as if they were built-in.
To create a OneToMany relationship, think about how a town can have multiple residents. You can set up this relationship as follows:
Adding a ManyToMany collection
To create a ManyToMany relationship, let's imagine a town's electricity comes from shared power plants, servicing multiple towns.
Adding an External Relationship fed by an API
In this example, we demonstrate using an external API to retrieve data about a town with several honorary citizens. Start by defining the JSON schema returned by the API. Then use listRecords() to implement how to fetch the data.