Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 367bf52

Browse files
authored
DOC-173 | added isSmart parameter to Create EnterpriseGraph section (#1097)
* added isSmart parameter to Create Graph section * Re-trigger Netlify * some other small fixes * applied changes to 3.11
1 parent ecc1143 commit 367bf52

File tree

2 files changed

+34
-30
lines changed

2 files changed

+34
-30
lines changed

3.10/graphs-enterprise-graphs-management.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,27 @@ enforce the correct sharding.
2727
`graph_module._create(graphName, edgeDefinitions, orphanCollections, smartOptions)`
2828

2929
- `graphName` (string):
30-
Unique identifier of the graph
30+
Unique identifier of the graph.
3131
- `edgeDefinitions` (array):
32-
List of relation definition objects, may be empty
32+
List of relation definition objects, may be empty.
3333
- `orphanCollections` (array):
34-
List of additional vertex collection names, may be empty
34+
List of additional vertex collection names, may be empty.
3535
- `smartOptions` (object):
3636
A JSON object having the following keys:
3737
- `numberOfShards` (number):
38-
The number of shards that will be created for each collection. To maintain
39-
the correct sharding all collections need an identical number of shards.
40-
This cannot be modified after creation of the graph.
38+
The number of shards that are created for each collection. To maintain
39+
the correct sharding, all collections need an identical number of shards.
40+
This cannot be modified after the creation of the graph.
41+
- `isSmart` (bool):
42+
Mandatory parameter that needs to be set to `true` to create an EnterpriseGraph.
4143
- `satellites` (array, optional):
42-
An array of collection names that will be used to create
44+
An array of collection names that is used to create
4345
[SatelliteCollections](satellites.html) for an EnterpriseGraph.
4446
Each array element must be a string and a valid collection name.
4547
The collection type cannot be modified later.
4648

4749
The creation of a graph requires the name and some SmartGraph options.
48-
Due to the API `edgeDefinitions` and `orphanCollections` have to be given, but
50+
Due to the API, `edgeDefinitions` and `orphanCollections` have to be given but
4951
both can be empty arrays and be added later.
5052

5153
The `edgeDefinitions` can be created using the convenience method `_relation`
@@ -58,7 +60,7 @@ the graph theoretic sense: it is possible to add edges having one end in a colle
5860
that has been declared as orphan.
5961

6062
All collections used within the creation process are newly created.
61-
The process will fail if one of them already exists, unless they have the
63+
The process fails if one of them already exists, unless they have the
6264
correct sharding already. All newly created collections will immediately
6365
be dropped again in the failure case.
6466

@@ -114,7 +116,7 @@ Create a graph with edge definitions and orphan collections:
114116
After you have created an EnterpriseGraph, its definition is not immutable. You can
115117
still add or remove relations. This is again identical to General Graphs.
116118

117-
However there is one important difference: you can only add collections that
119+
However, there is one important difference: you can only add collections that
118120
either *do not exist*, or that have been created by this graph earlier. The
119121
latter can be the case if you, for example, remove an orphan collection from this
120122
graph, without dropping the collection itself. When after some time you decide
@@ -130,11 +132,11 @@ Remove a vertex collection from the graph:
130132
- `vertexCollectionName` (string):
131133
Name of vertex collection.
132134
- `dropCollection` (bool, _optional_):
133-
If true, the collection will be dropped if it is not used in any other graph.
135+
If true, the collection is dropped if it is not used in any other graph.
134136
Default: false.
135137

136-
In most cases this function works identically to the General Graph one.
137-
However there is one special case: The first vertex collection added to the graph
138+
In most cases, this function works identically to the General Graph one.
139+
However, there is one special case: the first vertex collection added to the graph
138140
(either orphan or within a relation) defines the sharding for all collections
139141
within the graph. Every other collection has its `distributeShardsLike` attribute set to the
140142
name of the initial collection. This collection cannot be dropped as long as
@@ -209,7 +211,7 @@ sharding for other collections (`edges`).
209211
{% include arangoshexample.html id=examplevar script=script result=result %}
210212

211213
You may drop the complete graph including the underlying collections by setting
212-
the second argument in the call to `_drop()` to `true`. This will only drop
214+
the second argument in the call to `_drop()` to `true`. This only drops
213215
collections that are in the graph definition at that point. Remember to manually
214216
drop collections that you might have removed from the graph beforehand.
215217

@@ -241,7 +243,7 @@ Delete an edge definition from the graph:
241243
- `edgeCollectionName` (string):
242244
Name of edge collection.
243245
- `dropCollection` (bool, _optional_):
244-
If true the collection will be dropped if it is not used in any other graph.
246+
If true, the collection is dropped if it is not used in any other graph.
245247
Default: false.
246248

247249
### Examples

3.11/graphs-enterprise-graphs-management.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,27 @@ enforce the correct sharding.
2727
`graph_module._create(graphName, edgeDefinitions, orphanCollections, smartOptions)`
2828

2929
- `graphName` (string):
30-
Unique identifier of the graph
30+
Unique identifier of the graph.
3131
- `edgeDefinitions` (array):
32-
List of relation definition objects, may be empty
32+
List of relation definition objects, may be empty.
3333
- `orphanCollections` (array):
34-
List of additional vertex collection names, may be empty
34+
List of additional vertex collection names, may be empty.
3535
- `smartOptions` (object):
3636
A JSON object having the following keys:
3737
- `numberOfShards` (number):
38-
The number of shards that will be created for each collection. To maintain
39-
the correct sharding all collections need an identical number of shards.
40-
This cannot be modified after creation of the graph.
38+
The number of shards that are created for each collection. To maintain
39+
the correct sharding, all collections need an identical number of shards.
40+
This cannot be modified after the creation of the graph.
41+
- `isSmart` (bool):
42+
Mandatory parameter that needs to be set to `true` to create an EnterpriseGraph.
4143
- `satellites` (array, optional):
42-
An array of collection names that will be used to create
44+
An array of collection names that is used to create
4345
[SatelliteCollections](satellites.html) for an EnterpriseGraph.
4446
Each array element must be a string and a valid collection name.
4547
The collection type cannot be modified later.
4648

4749
The creation of a graph requires the name and some SmartGraph options.
48-
Due to the API `edgeDefinitions` and `orphanCollections` have to be given, but
50+
Due to the API, `edgeDefinitions` and `orphanCollections` have to be given but
4951
both can be empty arrays and be added later.
5052

5153
The `edgeDefinitions` can be created using the convenience method `_relation`
@@ -58,7 +60,7 @@ the graph theoretic sense: it is possible to add edges having one end in a colle
5860
that has been declared as orphan.
5961

6062
All collections used within the creation process are newly created.
61-
The process will fail if one of them already exists, unless they have the
63+
The process fails if one of them already exists, unless they have the
6264
correct sharding already. All newly created collections will immediately
6365
be dropped again in the failure case.
6466

@@ -114,7 +116,7 @@ Create a graph with edge definitions and orphan collections:
114116
After you have created an EnterpriseGraph, its definition is not immutable. You can
115117
still add or remove relations. This is again identical to General Graphs.
116118

117-
However there is one important difference: you can only add collections that
119+
However, there is one important difference: you can only add collections that
118120
either *do not exist*, or that have been created by this graph earlier. The
119121
latter can be the case if you, for example, remove an orphan collection from this
120122
graph, without dropping the collection itself. When after some time you decide
@@ -130,11 +132,11 @@ Remove a vertex collection from the graph:
130132
- `vertexCollectionName` (string):
131133
Name of vertex collection.
132134
- `dropCollection` (bool, _optional_):
133-
If true, the collection will be dropped if it is not used in any other graph.
135+
If true, the collection is dropped if it is not used in any other graph.
134136
Default: false.
135137

136-
In most cases this function works identically to the General Graph one.
137-
However there is one special case: The first vertex collection added to the graph
138+
In most cases, this function works identically to the General Graph one.
139+
However, there is one special case: the first vertex collection added to the graph
138140
(either orphan or within a relation) defines the sharding for all collections
139141
within the graph. Every other collection has its `distributeShardsLike` attribute set to the
140142
name of the initial collection. This collection cannot be dropped as long as
@@ -209,7 +211,7 @@ sharding for other collections (`edges`).
209211
{% include arangoshexample.html id=examplevar script=script result=result %}
210212

211213
You may drop the complete graph including the underlying collections by setting
212-
the second argument in the call to `_drop()` to `true`. This will only drop
214+
the second argument in the call to `_drop()` to `true`. This only drops
213215
collections that are in the graph definition at that point. Remember to manually
214216
drop collections that you might have removed from the graph beforehand.
215217

@@ -241,7 +243,7 @@ Delete an edge definition from the graph:
241243
- `edgeCollectionName` (string):
242244
Name of edge collection.
243245
- `dropCollection` (bool, _optional_):
244-
If true the collection will be dropped if it is not used in any other graph.
246+
If true, the collection is dropped if it is not used in any other graph.
245247
Default: false.
246248

247249
### Examples

0 commit comments

Comments
 (0)