Create a segment
- Enable Layout Editor mode (top right of your screen)
- Click the ⚙️ cog icon next to the collection you want to edit
- Go to the Segments tab
- Click “Create your first segment” (or ”+ New segment” if you already have some)
- Give your segment a name
- Add one or more filters
- Optionally adjust the sort field and order
- Save
Reorder segments
Use the Layout Editor to drag and drop segments into the order that matches your workflow.SQL Query segments
For advanced filtering, create a segment using a raw SQL query.To enable SQL Query segments in back-end v2, your developers need to add a connection name to the datasources on which you want to run live queries.
To query across multiple databases in PostgreSQL, you can use the dblink function.