Page Contents

Home > @loopback/repository > FilterBuilder > fields

FilterBuilder.fields() method

Describe what fields to be included/excluded

Signature:

fields(...f: (Fields<MT> | (keyof MT)[] | keyof MT)[]): this;

Parameters

Parameter Type Description
f (Fields<MT> | (keyof MT)[] | keyof MT)[] A field name to be included, an array of field names to be included, or an Fields object for the inclusion/exclusion

Returns:

this