模型查询
Aiao RxDB 提供了丰富的查询 API,支持链式调用、复杂条件过滤和实时响应。
基础查询
- get - 根据 ID 获取单个实体。
- find - 分页查询多个实体。
- findAll - 查询所有符合条件的实体。
- findOne - 查询单个实体。
- findOneOrFail - 查询单个实体,不存在时抛出错误。
- findByCursor - 基于游标的分页查询。
- count - 统计数量。
树形结构查询
- findDescendants - 查找后代节点。
- findAncestors - 查找祖先节点。
- countDescendants - 统计后代数量。
- countAncestors - 统计祖先数量。
图结构查询
- findNeighbors - 查找邻居节点(N 跳邻居)。
- countNeighbors - 统计邻居数量。
- findPaths - 查找两个节点之间的路径。
其他
- 操作符 (Operators) - 查询操作符详解。
- 实时查询原理 - 了解响应式查询的优化机制。