As discussed in Chapter 3, Cosmos DB Multi-model Databases, a graph data model is a structure that's comprised of vertices and edges. Both vertices and edges can have a set number of properties:
- Vertices represent discrete objects, such as a person, a place, or an event.
- Edges represent relationships between vertices. For example, a person might know another person, be involved in an event, and recently have been at a location.
- Properties denote details about the vertices and edges. Azure Cosmos DB supports the property graph model.
Let's create a new database first:
- Click on
New Database
and choose theGremlin
asAPI
. Refer to the following screenshot for reference:
- Now, create a new graph database and
Graph Id
. Refer to the following screenshot for reference:
- Now, you need to generate the keys to connect it via any programming interface. Go to
Settings
|Keys
and click on the primary and secondary keys to generate it. Refer to the following screenshot for...