cube.js 学习(十)cube 来自官方的学习网站

尽管cube.js 包含了一个doc 站点,但是资料不是很全,同时如果查看了cube github 代码中的一些demo的话,发现还是很不错的
但是一些实践没有在文档展现出来,还好我们可以从cube 的产品网站找点有意义的东西

参考网站

https://statsbot.co/docs

比如一些好的实践

  • 动态union table 的
https://statsbot.co/docs/dynamically-union-tables
  • 如何处理子查询的
https://statsbot.co/docs/subquery
  • 设计可重用的schema
https://statsbot.co/docs/schema-generation

说明
实际上这个技巧,在cube github example 代码中包含了

来自官方的技巧

以下是一张图,上面的总结还是很不错的

说明

结合statsbot的网站可以加速我们学习cube,同时快速应用起来

参考资料

https://cube.dev/docs
https://statsbot.co/docs

原文地址:https://www.cnblogs.com/rongfengliang/p/10808545.html