DocsQueries & lists · FQL
On this page

    Choose record lookup fields

    Select record fields and use generated metadata.

    Before you begin: Read a saved record.

    Post Lookup Fields

    Post lookups and list selector $where objects can read two kinds of fields:

    Field keyReads from
    slug, name, parent_idThe visible post data. These keys can match public post data, or the current author's private post data.
    id, type, authorId, status, createdOn, updatedOnSystem post fields.

    Use plain keys for data your theme stores in the post body:

    FQL state configuration

    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 →

    Use the root system key when you mean a posts-table column:

    FQL state configuration

    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 →

    The same rule applies to list selectors:

    FQL state configuration

    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 →

    authorId and status are useful lookup/filter keys. Returned post objects expose root system fields and place theme-owned values under data.

    Continue with Read account data.