File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1209,7 +1209,7 @@ def create_graph(
1209
1209
'to_vertex_collections': ['lectures']
1210
1210
}
1211
1211
"""
1212
- data : Json = {"name" : name }
1212
+ data : Json = {"name" : name , "options" : dict () }
1213
1213
if edge_definitions is not None :
1214
1214
data ["edgeDefinitions" ] = [
1215
1215
{
@@ -1224,9 +1224,9 @@ def create_graph(
1224
1224
if smart is not None : # pragma: no cover
1225
1225
data ["isSmart" ] = smart
1226
1226
if smart_field is not None : # pragma: no cover
1227
- data ["smartGraphAttribute" ] = smart_field
1227
+ data ["options" ][ " smartGraphAttribute" ] = smart_field
1228
1228
if shard_count is not None : # pragma: no cover
1229
- data ["numberOfShards" ] = shard_count
1229
+ data ["options" ][ " numberOfShards" ] = shard_count
1230
1230
1231
1231
request = Request (method = "post" , endpoint = "/_api/gharial" , data = data )
1232
1232
You can’t perform that action at this time.
0 commit comments