Page Contents
Home > @loopback/filter > FilterBuilder > fields
FilterBuilder.fields() method
Describe what fields to be included/excluded
Signature:
fields(...f: (Fields<MT> | Extract<keyof MT, string>)[]): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
f |
(Fields<MT> | Extract<keyof MT, string>)[] |
A field name to be included, an array of field names to be included, or an Fields object for the inclusion/exclusion |
Returns:
this