On this page
Read a saved record
Select a record and use its data and metadata.
Before you begin: Read page data.
Single Post Lookup
Use the post type name as the root, followed by a lookup projection.
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 →
You can also use $posts or $post before the post type:
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 →
Another example:
The lookup object selects one post of that type.
Single Post Shape
A single post lookup resolves to the visible data for the matched row.
id, type, createdOn, and updatedOn are system fields generated and managed by Frontbacked. Theme-owned post values are nested under data. Do not include system fields in the post data you submit.
If the current user is the post author, the post object is:
Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →
If the current user is not the post author, the post object is:
Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →
Read system fields at the root and theme-owned post fields under data:
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 →
You can also read a field directly from the lookup expression:
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 →
Continue with Choose record lookup fields.