mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 15:26:40 +00:00
4d6363b47a
* docs: update database repository docs * docs: single relation repository docs * docs: has many relation repository docs * docs: belongs to many relation repository docs * docs: acl * docs: actions Co-authored-by: chenos <chenlinxh@gmail.com>
9 lines
246 B
Markdown
9 lines
246 B
Markdown
**类型**
|
|
```typescript
|
|
type FindOneOptions = Omit<FindOptions, 'limit'>;
|
|
```
|
|
|
|
**参数**
|
|
|
|
大部分参数与 `find()` 相同,不同之处在于 `findOne()` 只返回单条数据,所以不需要 `limit` 参数,且查询时始终为 `1`。
|