UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

34 lines (22 loc) 1.02 kB
--- lang: en title: 'API docs: repository.includefieldifnot' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository permalink: /doc/en/lb4/apidocs.repository.includefieldifnot.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [includeFieldIfNot](./repository.includefieldifnot.md) ## includeFieldIfNot() function **Signature:** ```typescript export declare function includeFieldIfNot<MT>(fields: Fields<MT> | undefined, fieldToInclude: Extract<keyof MT, string>): false | Fields<MT>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | fields | [Fields](./filter.fields.md)<!-- -->&lt;MT&gt; \| undefined | | | fieldToInclude | Extract&lt;keyof MT, string&gt; | | **Returns:** false \| [Fields](./filter.fields.md)<!-- -->&lt;MT&gt;