Skip to content

Commit 2731583

Browse files
committed
Fix graph.create isDisjoint option
1 parent 95689f7 commit 2731583

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ This driver uses semantic versioning:
5151

5252
- Fixed `listUsers` behavior ([#782](https://github.com/arangodb/arangojs/issues/782))
5353

54+
- Fixed `graph.create` not correctly handling `isDisjoint` option
55+
5456
### Added
5557

5658
- Added missing attributes to `QueryInfo` and `MultiExplainResult.stats` types (DE-607)

src/graph.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,14 +1294,8 @@ export class Graph {
12941294
edgeDefinitions: EdgeDefinitionOptions[],
12951295
options: CreateGraphOptions = {}
12961296
): Promise<GraphInfo> {
1297-
const {
1298-
orphanCollections,
1299-
satellites,
1300-
waitForSync,
1301-
isSmart,
1302-
isDisjoint,
1303-
...opts
1304-
} = options;
1297+
const { orphanCollections, satellites, waitForSync, isSmart, ...opts } =
1298+
options;
13051299
return this._db.request(
13061300
{
13071301
method: "POST",
@@ -1314,7 +1308,6 @@ export class Graph {
13141308
: [collectionToString(orphanCollections)]),
13151309
edgeDefinitions: edgeDefinitions.map(coerceEdgeDefinition),
13161310
isSmart,
1317-
isDisjoint,
13181311
name: this._name,
13191312
options: { ...opts, satellites: satellites?.map(collectionToString) },
13201313
},

0 commit comments

Comments
 (0)