useFindOne()
function useFindOne<T>(EntityType, options): RxDBResource<InstanceType<T> | undefined>;
Defined in: hooks.ts:183
查找匹配条件的单个实体
Type Parameters
| Type Parameter |
|---|
T extends EntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | 实体类 |
options | UseOptions<EntityStaticType<T, "findOneOptions">> | 查询选项(where 子句、排序等) |
Returns
RxDBResource<InstanceType<T> | undefined>
包含实体的响应式资源对象