UNPKG

@loopback/docs

Version:

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

65 lines (34 loc) 1.15 kB
--- lang: en title: 'API docs: rest-crud.crudrestcontroller.find' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest-crud permalink: /doc/en/lb4/apidocs.rest-crud.crudrestcontroller.find.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest-crud](./rest-crud.md) &gt; [CrudRestController](./rest-crud.crudrestcontroller.md) &gt; [find](./rest-crud.crudrestcontroller.find.md) ## CrudRestController.find() method Implementation of the endpoint `GET /`<!-- -->. **Signature:** ```typescript find(filter?: Filter<T>): Promise<(T & Relations)[]>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> filter </td><td markdown="1"> [Filter](./filter.filter.md)<!-- -->&lt;T&gt; </td><td markdown="1"> _(Optional)_ Filter </td></tr> </tbody></table> **Returns:** Promise&lt;(T &amp; Relations)\[\]&gt;