json-fs-query
    Preparing search index...

    Function selectFields

    • Shape each row down to only the selected properties (aliased, when given, otherwise named as written). dataSet is either a list of rows, or (once groupBy has run) a list of groups, whose rows are shaped the same way at any depth; the groups keep their field and value, selected or not.

      Parameters

      • dataSet: Object[] | Group[] = []
      • selectClauses: ParsedSelect[] = []
      • grouped: boolean = false

        Whether dataSet is a list of groups (see groupBy)

      • Optionalentity: string

        The queried record's name, so <record>.<field> picks the row's own field

      Returns Object[] | Group[]