@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
28 lines (19 loc) • 675 B
Markdown
lang: en
title: 'API docs: filter.fields'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/filter
permalink: /doc/en/lb4/apidocs.filter.fields.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/filter](./filter.md) > [Fields](./filter.fields.md)
## Fields type
Selection of fields
Example: `{afieldname: true}`
<b>Signature:</b>
```typescript
export declare type Fields<MT = AnyObject> = {
[P in keyof MT]?: boolean;
} | Extract<keyof MT, string>[];
```