create
Synopsis
system.graph('graph_name').create()
Description
Create a new graph.
The graph_name
specified is used to create two DSE database keyspaces, graph_name
and graph_name_system
, and can only contain alphanumeric and underscore characters.
Examples
Create a new graph.
gremlin> system.graph('FridgeItem').create()
The resulting list:
==>FridgeItem
Create a new graph if it doesn’t currently exist by modifying with ifNotExists()
.
gremlin> system.graph('FridgeItem').ifNotExists().create()
The resulting list:
==>FridgeItem
Creating a graph should include setting the replication factor for the graph and the graph_system
.
It can also include other options.