Join using FrontQL
Introduction
In web applications, it is common to join data from multiple collections. FrontQL provides the ability to join data using the join
query parameter.
Implementing Join
- The
join
query parameter is used to specify the collection(s) to join.
Example
Here’s a simple example of implementing join using FrontQL:
In this example, the
join
query parameter is used to specify that theusers
collection should be joined with theposts
collection. The join is done on thepost
field in theusers
collection, which corresponds to theid
field in theposts
collection.