From b096b09e8539c08b157eda64ae22cdfdcdaba78b Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Thu, 13 Oct 2016 13:10:43 +0100 Subject: [PATCH] Fixed JS syntax bug in gharial module --- .../JSF_general_graph_create_http_examples.md | 17 +++++++++++++++++ js/apps/system/_api/gharial/APP/gharial.js | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/DocuBlocks/Rest/Graph/JSF_general_graph_create_http_examples.md b/Documentation/DocuBlocks/Rest/Graph/JSF_general_graph_create_http_examples.md index 5288cf153b..66cfbcd330 100644 --- a/Documentation/DocuBlocks/Rest/Graph/JSF_general_graph_create_http_examples.md +++ b/Documentation/DocuBlocks/Rest/Graph/JSF_general_graph_create_http_examples.md @@ -17,6 +17,23 @@ An array of definitions for the edge @RESTBODYPARAM{orphanCollections,string,optional,string} 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 @RESTRETURNCODE{201} diff --git a/js/apps/system/_api/gharial/APP/gharial.js b/js/apps/system/_api/gharial/APP/gharial.js index eadf07b14d..31d305dc52 100644 --- a/js/apps/system/_api/gharial/APP/gharial.js +++ b/js/apps/system/_api/gharial/APP/gharial.js @@ -174,7 +174,7 @@ function graphForClient (g) { orphanCollections: g._orphanCollections(), isSmart: g.__isSmart || false, numberOfShards: g.__numberOfShards || 0, - smartGraphAttribute: g.__smartGraphAttribute || "" + smartGraphAttribute: g.__smartGraphAttribute || '', _id: g.__id, _rev: g.__rev };