Does any of the Firebase databases support graphs
G

1

11

Does any of the firebase database types (Firestore, Realtime DB, Firebase Storage) support graph like data modeling?

If not is there any graph database which can be integrated with firebase databases (like JanusGraph integrates BigTable as a back-end data store)?

Gascon answered 3/12, 2017 at 16:15 Comment(1)
you could try using apollo graphql with firestore, it gives the data as graphsBogey
A
9

None of the Firebase data stores use graph database technology. Both Firestore and Realtime DB are NoSQL JSON document stores. However, it is possible to build a graph data model in Firestore. The article Graph Data with Firebase is a description of how to achieve this and there are many others.

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.

The challenge is querying your graph. For some use cases, 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.

Also, note that GraphQL just provides a query language for existing APIs and is completely unrelated to graph databases or data models.

Alderson answered 7/5, 2021 at 17:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.