Graph databases fulfill a need that traditional databases have left unmet: They prioritize relationships between entities. This makes graph databases incredibly efficient for looking for patterns, making predictions, and finding solutions. While it’s a general purpose document database, MongoDB provides graph and tree traversal capabilities with its $graphLookup stage in the aggregation pipeline.
![Using MongoDB As Graph Database: Use Cases](https://cdn-ak-scissors.b.st-hatena.com/image/square/218d3c214167171056f2ba139c25ec9cd82c1854/height=288;version=1;width=512/http%3A%2F%2Fs3.amazonaws.com%2Finfo-mongodb-com%2F_com_assets%2Fcms%2Fkuzt9r42or1fxvlq2-Meta_Generic.png)