跳到主要内容

模型查询

REST, GraphQL, gRPC 统统的不要~ 我们的观点是基于数据模型,面向对象的方式才是最容易记忆

基础数据查询

查询所有已经完成的 todo

Todo.findAll({
where: {
combinator: 'and',
rules: [
{
field: 'completed',
operator: '=',
value: true
}
]
}
});

树结构数据查询

Menu.findRoot({ level: 0 });

图结构数据查询