firebase - 是否有任何 Firebase 数据库支持图形

标签 firebase firebase-realtime-database firebase-storage graph-databases google-cloud-firestore

是否有任何 Firebase 数据库类型(Firestore、实时数据库、Firebase 存储)支持数据建模之类的图形?

如果没有,是否有任何可以与 firebase 数据库集成的图形数据库(如 JanusGraph 将 BigTable 集成为后端数据存储)?

最佳答案

Firebase 数据存储均不使用图形数据库技术。 Firestore 和实时数据库都是 NoSQL JSON 文档存储。但是,可以在 Firestore 中构建图形数据模型。文章Graph Data with Firebase是对如何实现这一目标的描述,还有许多其他内容。

Graphs, quite simply, are a way to model complex relationships between many objects. A graph is a collection of nodes (also known as vertices) and edges (also known as links). A node is merely an abstract data point and it can represent anything such as a person, a computer, a building, or an intersection. An edge connects two nodes and can optionally be directional. Information only flows one way.


挑战在于查询您的图表。对于某些用例,Firestore queries可能就足够了。然而,强大的查询语言如 GremlinCypher仅适用于真正的图形数据库,如 Amazon NeptuneNeo4j .
另外,请注意 GraphQL只为现有 API 提供查询语言,与图数据库或数据模型完全无关。

关于firebase - 是否有任何 Firebase 数据库支持图形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47620378/

相关文章:

firebase - Firestore 规则 - 数据类型验证

Android Firebase 从实时数据库中获取其他用户的 uid

Android Firebase 列出来自键的数据

android - 如何在最新版本中使用 getdownloadurl?

swift - 缓存的图像闪烁

ios - 当应用程序未在 React-Native firebase 中运行时如何设置通知声音

angular - 使用 Angular2、angularfire2 和 Typescript 从 Firebase 对象中获取数据

javascript - 检查数组中的字符串是否包含另一个字符串 React Native

android - 上传到 firebase 存储后图像会自动旋转

Firebase 到 BigQuery : active users count does not match