Introduction to the Gremlin API

Learn the essentials of graph databases, what Gremlin is, and how to use it in Cosmos DB with C#.

What is a graph database?

Graphs are helpful data structures that represent objects and their relationships. A graph database uses graphs to represent, store, and query data. Graphs might seem similar to relational databases, but are very different. Graphs excel when data is complex and highly interconnected, like social networks or recommendation systems.

There are two main components in a graph:

  • Nodes (vertexes): They represent the entities in the database, like tables in SQL.

  • Edges (links): They represent the relationships between nodes. They have a direction and can store information.

Get hands-on with 1400+ tech skills courses.