mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:arangodb/arangodb into devel
This commit is contained in:
commit
698fa4daeb
|
@ -17,6 +17,23 @@ An array of definitions for the edge
|
||||||
@RESTBODYPARAM{orphanCollections,string,optional,string}
|
@RESTBODYPARAM{orphanCollections,string,optional,string}
|
||||||
An array of additional vertex collections.
|
An array of additional vertex collections.
|
||||||
|
|
||||||
|
@RESTBODYPARAM{isSmart,boolean,optional,boolean}
|
||||||
|
Define if the created graph should be smart.
|
||||||
|
This only has effect in Enterprise version.
|
||||||
|
|
||||||
|
@RESTBODYPARAM{options,object,optional,post_api_gharial_create_opts}
|
||||||
|
a json object which is only useful in Enterprise version and with isSmart set to true.
|
||||||
|
It can contain the following attributes:
|
||||||
|
|
||||||
|
@RESTSTRUCT{smartGraphAttribute,post_api_gharial_create_opts,string,required,}
|
||||||
|
The attribute name that is used to smartly shard the vertices of a graph.
|
||||||
|
Every vertex in this Graph has to have this attribute.
|
||||||
|
Cannot be modified later.
|
||||||
|
|
||||||
|
@RESTSTRUCT{numberOfShards,post_api_gharial_create_opts,integer,required,}
|
||||||
|
The number of shards that is used for every collection within this graph.
|
||||||
|
Cannot be modified later.
|
||||||
|
|
||||||
@RESTRETURNCODES
|
@RESTRETURNCODES
|
||||||
|
|
||||||
@RESTRETURNCODE{201}
|
@RESTRETURNCODE{201}
|
||||||
|
|
|
@ -174,7 +174,7 @@ function graphForClient (g) {
|
||||||
orphanCollections: g._orphanCollections(),
|
orphanCollections: g._orphanCollections(),
|
||||||
isSmart: g.__isSmart || false,
|
isSmart: g.__isSmart || false,
|
||||||
numberOfShards: g.__numberOfShards || 0,
|
numberOfShards: g.__numberOfShards || 0,
|
||||||
smartGraphAttribute: g.__smartGraphAttribute || "",
|
smartGraphAttribute: g.__smartGraphAttribute || '',
|
||||||
_id: g.__id,
|
_id: g.__id,
|
||||||
_rev: g.__rev
|
_rev: g.__rev
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue