On this page
Build a data page
Render a list, compare values and prepare search previews.
Before you begin: Query a list.
Lists in the DOM
Point list root elements to selector state values.
Selector Comparison Operators
Plain keys inside $where are equality checks. Use these suffixes for other comparisons:
| Suffix | Meaning | Example |
| --- | --- |
| $gt | Greater than | { "expiresOn.$gt": "$now" } |
| $gte | Greater than or equal | { "amount.$gte": 5000 } |
| $lt | Less than | { "createdOn.$lt": "2026-06-05T09:00:00.000Z" } |
| $lte | Less than or equal | { "amount.$lte": 5000 } |
| $ne | Not equal | { "status.$ne": "failed" } |
Use $and and $or with arrays for grouped logic:
Add this configuration inside your page’s {STATE} declaration. Inspect state shows its configuration; live queries and saved data run against your local site. Try a complete FQL page →
Efficient Updates
Frontbacked remembers which data is already available on the page. If a state change only affects local display values, it re-renders immediately without asking the server for the same data again.
This means you can freely derive display values from $state without causing unnecessary network requests.
Full Data Page Example
Public pages and search previews
Public FQL content can appear in the first HTML response, before JavaScript runs. Use the same bindings for a product page, article, catalog, or tracking page and its metadata:
Frontbacked renders public settings, post lookups, declarative state, lists, text, attributes, and visibility conditions. It then uses the rendered <title> and description to fill missing Open Graph and Twitter tags. Each tag you supply takes precedence individually, including tags bound with FQL. Provide readable fallback text for content that depends on browser-only behavior.
FRL controls access exactly as it does for browser reads. Initial rendering always uses a signed-out visitor, even when the request comes from a signed-in admin. Private fields, drafts, and restricted records do not become public through rendering. Pages declared with f-access="auth" or another protected access mode remain browser-rendered.
The browser reuses the public data already in the HTML, then attaches forms, navigation, list controls, and live updates. Signed-in visitors fetch their own authorized data separately. Custom JavaScript functions, browser storage, authentication, wallets, transactions, and current-time expressions run in the browser; they are not evaluated during public rendering. Nested expressions that depend on these values should have suitable placeholders.
Public output is cached briefly and refreshed when saved content, relevant files, settings, FRL rules, or the selected theme source changes. Separate sites, theme roots, versions, URLs, currencies, and skins have separate cache entries. Time-dependent read permissions and permissions that call custom functions are evaluated fresh rather than shared-cached. Built-in admin permission checks can still use the public cache; public rendering always evaluates them as a signed-out visitor. Failed renders fall back to the normal browser experience without caching the failure.
Large lists render a bounded initial selection; pagination and larger selections continue in the browser. Token, password, session, verification-code, and similar sensitive URLs use browser rendering. For a public page that should always render in the browser, set:
Use route parameters for shareable content URLs. If query parameters identify distinct public content, declare a suitable canonical URL and sharing URL; default generated URLs exclude query strings.