是否有任何 Firebase 数据库支持图表
Does any of the Firebase databases support graphs
是否有任何 firebase 数据库类型(Firestore、Realtime DB、Firebase Storage)支持图形数据建模?
如果没有,有没有可以与firebase数据库集成的图数据库(比如JanusGraph集成BigTable作为后端数据存储)?
None 的 Firebase 数据存储使用图形数据库技术。 Firestore 和 Realtime DB 都是 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 might be sufficient. However, powerful querying languages like Gremlin or Cypher are only available on true graph databases like Amazon Neptune or Neo4j.
另请注意,GraphQL 只是为现有 API 提供一种查询语言,与图形数据库或数据模型完全无关。
是否有任何 firebase 数据库类型(Firestore、Realtime DB、Firebase Storage)支持图形数据建模?
如果没有,有没有可以与firebase数据库集成的图数据库(比如JanusGraph集成BigTable作为后端数据存储)?
None 的 Firebase 数据存储使用图形数据库技术。 Firestore 和 Realtime DB 都是 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 might be sufficient. However, powerful querying languages like Gremlin or Cypher are only available on true graph databases like Amazon Neptune or Neo4j.
另请注意,GraphQL 只是为现有 API 提供一种查询语言,与图形数据库或数据模型完全无关。