@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (21 loc) • 945 B
Markdown
lang: en
title: 'API docs: repository.filterbuilder.fields'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.filterbuilder.fields.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [FilterBuilder](./repository.filterbuilder.md) > [fields](./repository.filterbuilder.fields.md)
## FilterBuilder.fields() method
Describe what fields to be included/excluded
<b>Signature:</b>
```typescript
fields(...f: (Fields<MT> | (keyof MT)[] | keyof MT)[]): this;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| f | <code>(Fields<MT> | (keyof MT)[] | keyof MT)[]</code> | A field name to be included, an array of field names to be included, or an Fields object for the inclusion/exclusion |
<b>Returns:</b>
`this`