MongoDB as a Graph Database
MongoDB offers graphing capabilities with its $graphLookup stage. Give $graphLookup a try by creating a free cluster in MongoDB Atlas.
Getting Started with MongoDB as a Graph Database
FAQs
No, MongoDB is not a graph database. MongoDB is a general-purpose document database with graph traversal capabilities.
Most applications will require a general-purpose database like MongoDB. Some applications will also require graph capabilities. In those cases, MongoDB's $graphLookup may provide sufficient graph capabilities, providing developers with the simplicity of using a single database. Other applications will require more advanced graph capabilities that are currently only available in a dedicated graph database. In those cases, a graph database can be coupled with a general-purpose database like MongoDB.
MongoDB's $graphLookup aggregation pipeline stage can be used to traverse graphs. For applications that require more advanced graph capabilities, a general-purpose database like MongoDB can be coupled with a dedicated graph database.
Get started with Atlas today
- 125+ regions worldwide
- Sample data sets
- Always-on authentication
- End-to-end encryption
- Command line tools