json-fs-query
    Preparing search index...

    Function assertKnownFields

    • Throw unless every field a query names (in where, sort, group by, select, on, merge, and an insert's or update's values) is defined by its record, before anything is read: the queried record for a plain name, the named one for <record>.<field> (any record, as a join through another one names it). In select, the joined record's name stands for its rows, and <record>.<field> names the queried record's own field or a merged record's (a joined record's rows are a list, with no one value to pick).

      Parameters

      • parsed: any

        The parsed query.

      • recordData: { [entity: string]: recordDefinition }

        Records already read, by name (more are read as they're named, and kept here).

      Returns Promise<void>

      Unknown field ... (see assertFieldsDefined), or Record "<name>" doesn't exist for a record that doesn't.