Back to Nocobase

Find One

docs/docs/en/api/database/shared/find-one.md

2.0.53277 B
Original Source

Type

typescript
type FindOneOptions = Omit<FindOptions, 'limit'>;

Parameters

Most parameters are the same as find(). The difference is that findOne() only returns a single record, so the limit parameter is not needed, and is always 1 during the query.