arangojs 7.8.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +264 -3
- package/CONTRIBUTING.md +1 -1
- package/MIGRATING.md +126 -2
- package/README.md +7 -13
- package/analyzer.d.ts +531 -253
- package/analyzer.d.ts.map +1 -1
- package/analyzer.js +9 -8
- package/analyzer.js.map +1 -1
- package/aql.d.ts +122 -139
- package/aql.d.ts.map +1 -1
- package/aql.js +146 -148
- package/aql.js.map +1 -1
- package/collection.d.ts +311 -310
- package/collection.d.ts.map +1 -1
- package/collection.js +163 -96
- package/collection.js.map +1 -1
- package/connection.d.ts +65 -52
- package/connection.d.ts.map +1 -1
- package/connection.js +142 -140
- package/connection.js.map +1 -1
- package/cursor.d.ts +108 -26
- package/cursor.d.ts.map +1 -1
- package/cursor.js +24 -23
- package/cursor.js.map +1 -1
- package/database.d.ts +298 -330
- package/database.d.ts.map +1 -1
- package/database.js +178 -252
- package/database.js.map +1 -1
- package/documents.d.ts +3 -4
- package/documents.d.ts.map +1 -1
- package/documents.js +0 -1
- package/documents.js.map +1 -1
- package/error.d.ts +3 -6
- package/error.d.ts.map +1 -1
- package/error.js +5 -7
- package/error.js.map +1 -1
- package/foxx-manifest.d.ts +7 -8
- package/foxx-manifest.d.ts.map +1 -1
- package/foxx-manifest.js +1 -1
- package/foxx-manifest.js.map +1 -1
- package/graph.d.ts +38 -56
- package/graph.d.ts.map +1 -1
- package/graph.js +59 -63
- package/graph.js.map +1 -1
- package/index.d.ts +6 -8
- package/index.d.ts.map +1 -1
- package/index.js +1 -6
- package/index.js.map +1 -1
- package/indexes.d.ts +348 -127
- package/indexes.d.ts.map +1 -1
- package/indexes.js +1 -3
- package/indexes.js.map +1 -1
- package/lib/blob.d.ts +0 -2
- package/lib/blob.d.ts.map +1 -1
- package/lib/blob.js +0 -1
- package/lib/blob.js.map +1 -1
- package/lib/btoa.d.ts +1 -3
- package/lib/btoa.d.ts.map +1 -1
- package/lib/btoa.js +3 -5
- package/lib/btoa.js.map +1 -1
- package/lib/btoa.web.d.ts +1 -3
- package/lib/btoa.web.d.ts.map +1 -1
- package/lib/btoa.web.js +4 -6
- package/lib/btoa.web.js.map +1 -1
- package/lib/codes.d.ts +2 -2
- package/lib/codes.d.ts.map +1 -1
- package/lib/codes.js +3 -3
- package/lib/codes.js.map +1 -1
- package/lib/errback.d.ts +0 -2
- package/lib/errback.d.ts.map +1 -1
- package/lib/errback.js.map +1 -1
- package/lib/joinPath.d.ts +0 -2
- package/lib/joinPath.d.ts.map +1 -1
- package/lib/joinPath.js +0 -2
- package/lib/joinPath.js.map +1 -1
- package/lib/joinPath.web.d.ts +1 -3
- package/lib/joinPath.web.d.ts.map +1 -1
- package/lib/joinPath.web.js +7 -4
- package/lib/joinPath.web.js.map +1 -1
- package/lib/multipart.d.ts +0 -4
- package/lib/multipart.d.ts.map +1 -1
- package/lib/multipart.js +16 -37
- package/lib/multipart.js.map +1 -1
- package/lib/multipart.web.d.ts +0 -2
- package/lib/multipart.web.d.ts.map +1 -1
- package/lib/multipart.web.js +0 -2
- package/lib/multipart.web.js.map +1 -1
- package/lib/normalizeUrl.d.ts +0 -2
- package/lib/normalizeUrl.d.ts.map +1 -1
- package/lib/normalizeUrl.js +0 -2
- package/lib/normalizeUrl.js.map +1 -1
- package/lib/omit.d.ts +1 -3
- package/lib/omit.d.ts.map +1 -1
- package/lib/omit.js +1 -2
- package/lib/omit.js.map +1 -1
- package/lib/querystringify.d.ts +4 -0
- package/lib/querystringify.d.ts.map +1 -0
- package/lib/querystringify.js +20 -0
- package/lib/querystringify.js.map +1 -0
- package/lib/querystringify.web.d.ts +2 -0
- package/lib/querystringify.web.d.ts.map +1 -0
- package/lib/querystringify.web.js +30 -0
- package/lib/querystringify.web.js.map +1 -0
- package/lib/request.d.ts +0 -1
- package/lib/request.d.ts.map +1 -1
- package/lib/request.js +6 -3
- package/lib/request.js.map +1 -1
- package/lib/request.node.d.ts +2 -8
- package/lib/request.node.d.ts.map +1 -1
- package/lib/request.node.js +16 -7
- package/lib/request.node.js.map +1 -1
- package/lib/request.web.d.ts +2 -3
- package/lib/request.web.d.ts.map +1 -1
- package/lib/request.web.js +26 -29
- package/lib/request.web.js.map +1 -1
- package/lib/xhr.d.ts +1 -3
- package/lib/xhr.d.ts.map +1 -1
- package/lib/xhr.js +0 -2
- package/lib/xhr.js.map +1 -1
- package/package.json +5 -6
- package/route.d.ts +1 -2
- package/route.d.ts.map +1 -1
- package/route.js +1 -2
- package/route.js.map +1 -1
- package/transaction.d.ts +31 -6
- package/transaction.d.ts.map +1 -1
- package/transaction.js +13 -6
- package/transaction.js.map +1 -1
- package/view.d.ts +237 -181
- package/view.d.ts.map +1 -1
- package/view.js +17 -25
- package/view.js.map +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/lib/error.d.ts +0 -18
- package/lib/error.d.ts.map +0 -1
- package/lib/error.js +0 -18
- package/lib/error.js.map +0 -1
package/graph.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { ArangoCollection, DocumentCollection, EdgeCollection, TraversalOptions
|
|
|
16
16
|
import { Database } from "./database";
|
|
17
17
|
import { Document, DocumentData, DocumentMetadata, DocumentSelector, Edge, EdgeData, Patch } from "./documents";
|
|
18
18
|
/**
|
|
19
|
-
* Indicates whether the given value represents a {@link Graph}.
|
|
19
|
+
* Indicates whether the given value represents a {@link graph.Graph}.
|
|
20
20
|
*
|
|
21
21
|
* @param graph - A value that might be a Graph.
|
|
22
22
|
*/
|
|
@@ -29,7 +29,7 @@ export declare type GraphCollectionReadOptions = {
|
|
|
29
29
|
* If set to a document revision, the document will only be returned if its
|
|
30
30
|
* `_rev` property matches this value.
|
|
31
31
|
*
|
|
32
|
-
* See also {@link DocumentMetadata}.
|
|
32
|
+
* See also {@link documents.DocumentMetadata}.
|
|
33
33
|
*/
|
|
34
34
|
rev?: string;
|
|
35
35
|
/**
|
|
@@ -74,7 +74,7 @@ export declare type GraphCollectionReplaceOptions = {
|
|
|
74
74
|
* If set to a document revision, the document will only be modified if its
|
|
75
75
|
* `_rev` property matches this value.
|
|
76
76
|
*
|
|
77
|
-
* See also {@link DocumentMetadata}.
|
|
77
|
+
* See also {@link documents.DocumentMetadata}.
|
|
78
78
|
*/
|
|
79
79
|
rev?: string;
|
|
80
80
|
/**
|
|
@@ -113,7 +113,7 @@ export declare type GraphCollectionRemoveOptions = {
|
|
|
113
113
|
* If set to a document revision, the document will only be removed if its
|
|
114
114
|
* `_rev` property matches this value.
|
|
115
115
|
*
|
|
116
|
-
* See also {@link DocumentMetadata}.
|
|
116
|
+
* See also {@link documents.DocumentMetadata}.
|
|
117
117
|
*/
|
|
118
118
|
rev?: string;
|
|
119
119
|
/**
|
|
@@ -131,7 +131,7 @@ export declare type GraphCollectionRemoveOptions = {
|
|
|
131
131
|
returnOld?: boolean;
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
|
-
* Definition of a relation in a {@link Graph}.
|
|
134
|
+
* Definition of a relation in a {@link graph.Graph}.
|
|
135
135
|
*/
|
|
136
136
|
export declare type EdgeDefinition = {
|
|
137
137
|
/**
|
|
@@ -148,7 +148,7 @@ export declare type EdgeDefinition = {
|
|
|
148
148
|
to: string[];
|
|
149
149
|
};
|
|
150
150
|
/**
|
|
151
|
-
* An edge definition used to define a collection of edges in a {@link Graph}.
|
|
151
|
+
* An edge definition used to define a collection of edges in a {@link graph.Graph}.
|
|
152
152
|
*/
|
|
153
153
|
export declare type EdgeDefinitionOptions = {
|
|
154
154
|
/**
|
|
@@ -171,7 +171,7 @@ export declare type GraphInfo = {
|
|
|
171
171
|
/**
|
|
172
172
|
* Key of the document internally representing this graph.
|
|
173
173
|
*
|
|
174
|
-
* See {@link DocumentMetadata}.
|
|
174
|
+
* See {@link documents.DocumentMetadata}.
|
|
175
175
|
*
|
|
176
176
|
* @internal
|
|
177
177
|
*/
|
|
@@ -179,7 +179,7 @@ export declare type GraphInfo = {
|
|
|
179
179
|
/**
|
|
180
180
|
* Unique identifier of the document internally representing this graph.
|
|
181
181
|
*
|
|
182
|
-
* See {@link DocumentMetadata}.
|
|
182
|
+
* See {@link documents.DocumentMetadata}.
|
|
183
183
|
*
|
|
184
184
|
* @internal
|
|
185
185
|
*/
|
|
@@ -187,7 +187,7 @@ export declare type GraphInfo = {
|
|
|
187
187
|
/**
|
|
188
188
|
* Revision of the document internally representing this graph.
|
|
189
189
|
*
|
|
190
|
-
* See {@link DocumentMetadata}.
|
|
190
|
+
* See {@link documents.DocumentMetadata}.
|
|
191
191
|
*
|
|
192
192
|
* @internal
|
|
193
193
|
*/
|
|
@@ -219,12 +219,6 @@ export declare type GraphInfo = {
|
|
|
219
219
|
* (Cluster only.) Write concern for new collections in the graph.
|
|
220
220
|
*/
|
|
221
221
|
writeConcern?: number;
|
|
222
|
-
/**
|
|
223
|
-
* (Cluster only.) Write concern for new collections in the graph.
|
|
224
|
-
*
|
|
225
|
-
* @deprecated Renamed to `writeConcern` in ArangoDB 3.6.
|
|
226
|
-
*/
|
|
227
|
-
minReplicationFactor?: number;
|
|
228
222
|
/**
|
|
229
223
|
* (Enterprise Edition cluster only.) If set to `true`, the graph is a
|
|
230
224
|
* SatelliteGraph.
|
|
@@ -249,7 +243,7 @@ export declare type GraphInfo = {
|
|
|
249
243
|
/**
|
|
250
244
|
* Option for creating a graph.
|
|
251
245
|
*/
|
|
252
|
-
export declare type
|
|
246
|
+
export declare type CreateGraphOptions = {
|
|
253
247
|
/**
|
|
254
248
|
* If set to `true`, the request will wait until all modifications have been
|
|
255
249
|
* synchronized to disk before returning successfully.
|
|
@@ -282,14 +276,6 @@ export declare type GraphCreateOptions = {
|
|
|
282
276
|
* Has no effect when `replicationFactor` is set to `"satellite"`.
|
|
283
277
|
*/
|
|
284
278
|
writeConcern?: number;
|
|
285
|
-
/**
|
|
286
|
-
* (Cluster only.) Write concern for new collections in the graph.
|
|
287
|
-
*
|
|
288
|
-
* Has no effect when `replicationFactor` is set to `"satellite"`.
|
|
289
|
-
*
|
|
290
|
-
* @deprecated Renamed to `writeConcern` in ArangoDB 3.6.
|
|
291
|
-
*/
|
|
292
|
-
minReplicationFactor?: number;
|
|
293
279
|
/**
|
|
294
280
|
* (Enterprise Edition cluster only.) If set to `true`, the graph will be
|
|
295
281
|
* created as a SmartGraph.
|
|
@@ -300,8 +286,6 @@ export declare type GraphCreateOptions = {
|
|
|
300
286
|
/**
|
|
301
287
|
* (Enterprise Edition cluster only.) Attribute containing the shard key
|
|
302
288
|
* value to use for smart sharding.
|
|
303
|
-
*
|
|
304
|
-
* **Note**: `isSmart` must be set to `true`.
|
|
305
289
|
*/
|
|
306
290
|
smartGraphAttribute?: string;
|
|
307
291
|
/**
|
|
@@ -339,7 +323,7 @@ export declare type ReplaceEdgeDefinitionOptions = {
|
|
|
339
323
|
satellites?: string[];
|
|
340
324
|
};
|
|
341
325
|
/**
|
|
342
|
-
* Represents a {@link DocumentCollection} of vertices in a {@link Graph}.
|
|
326
|
+
* Represents a {@link collection.DocumentCollection} of vertices in a {@link graph.Graph}.
|
|
343
327
|
*
|
|
344
328
|
* @param T - Type to use for document data. Defaults to `any`.
|
|
345
329
|
*/
|
|
@@ -350,7 +334,6 @@ export declare class GraphVertexCollection<T extends Record<string, any> = any>
|
|
|
350
334
|
protected _collection: DocumentCollection<T>;
|
|
351
335
|
/**
|
|
352
336
|
* @internal
|
|
353
|
-
* @hidden
|
|
354
337
|
*/
|
|
355
338
|
constructor(db: Database, name: string, graph: Graph);
|
|
356
339
|
/**
|
|
@@ -364,11 +347,11 @@ export declare class GraphVertexCollection<T extends Record<string, any> = any>
|
|
|
364
347
|
*/
|
|
365
348
|
get name(): string;
|
|
366
349
|
/**
|
|
367
|
-
* A {@link DocumentCollection} instance for this vertex collection.
|
|
350
|
+
* A {@link collection.DocumentCollection} instance for this vertex collection.
|
|
368
351
|
*/
|
|
369
352
|
get collection(): DocumentCollection<T>;
|
|
370
353
|
/**
|
|
371
|
-
* The {@link Graph} instance this vertex collection is bound to.
|
|
354
|
+
* The {@link graph.Graph} instance this vertex collection is bound to.
|
|
372
355
|
*/
|
|
373
356
|
get graph(): Graph;
|
|
374
357
|
/**
|
|
@@ -409,7 +392,7 @@ export declare class GraphVertexCollection<T extends Record<string, any> = any>
|
|
|
409
392
|
* try {
|
|
410
393
|
* const vertex = await collection.vertex("abc123");
|
|
411
394
|
* console.log(vertex);
|
|
412
|
-
* } catch (e) {
|
|
395
|
+
* } catch (e: any) {
|
|
413
396
|
* console.error("Could not find vertex");
|
|
414
397
|
* }
|
|
415
398
|
* ```
|
|
@@ -445,7 +428,7 @@ export declare class GraphVertexCollection<T extends Record<string, any> = any>
|
|
|
445
428
|
* try {
|
|
446
429
|
* const vertex = await collection.vertex("abc123", false);
|
|
447
430
|
* console.log(vertex);
|
|
448
|
-
* } catch (e) {
|
|
431
|
+
* } catch (e: any) {
|
|
449
432
|
* console.error("Could not find vertex");
|
|
450
433
|
* }
|
|
451
434
|
* ```
|
|
@@ -571,7 +554,7 @@ export declare class GraphVertexCollection<T extends Record<string, any> = any>
|
|
|
571
554
|
}>;
|
|
572
555
|
}
|
|
573
556
|
/**
|
|
574
|
-
* Represents a {@link EdgeCollection} of edges in a {@link Graph}.
|
|
557
|
+
* Represents a {@link collection.EdgeCollection} of edges in a {@link graph.Graph}.
|
|
575
558
|
*
|
|
576
559
|
* @param T - Type to use for document data. Defaults to `any`.
|
|
577
560
|
*/
|
|
@@ -582,7 +565,6 @@ export declare class GraphEdgeCollection<T extends Record<string, any> = any> im
|
|
|
582
565
|
protected _collection: EdgeCollection<T>;
|
|
583
566
|
/**
|
|
584
567
|
* @internal
|
|
585
|
-
* @hidden
|
|
586
568
|
*/
|
|
587
569
|
constructor(db: Database, name: string, graph: Graph);
|
|
588
570
|
/**
|
|
@@ -596,11 +578,11 @@ export declare class GraphEdgeCollection<T extends Record<string, any> = any> im
|
|
|
596
578
|
*/
|
|
597
579
|
get name(): string;
|
|
598
580
|
/**
|
|
599
|
-
* A {@link EdgeCollection} instance for this edge collection.
|
|
581
|
+
* A {@link collection.EdgeCollection} instance for this edge collection.
|
|
600
582
|
*/
|
|
601
583
|
get collection(): EdgeCollection<T>;
|
|
602
584
|
/**
|
|
603
|
-
* The {@link Graph} instance this edge collection is bound to.
|
|
585
|
+
* The {@link graph.Graph} instance this edge collection is bound to.
|
|
604
586
|
*/
|
|
605
587
|
get graph(): Graph;
|
|
606
588
|
/**
|
|
@@ -641,7 +623,7 @@ export declare class GraphEdgeCollection<T extends Record<string, any> = any> im
|
|
|
641
623
|
* try {
|
|
642
624
|
* const edge = await collection.edge("abc123");
|
|
643
625
|
* console.log(edge);
|
|
644
|
-
* } catch (e) {
|
|
626
|
+
* } catch (e: any) {
|
|
645
627
|
* console.error("Could not find edge");
|
|
646
628
|
* }
|
|
647
629
|
* ```
|
|
@@ -677,7 +659,7 @@ export declare class GraphEdgeCollection<T extends Record<string, any> = any> im
|
|
|
677
659
|
* try {
|
|
678
660
|
* const edge = await collection.edge("abc123", false);
|
|
679
661
|
* console.log(edge);
|
|
680
|
-
* } catch (e) {
|
|
662
|
+
* } catch (e: any) {
|
|
681
663
|
* console.error("Could not find edge");
|
|
682
664
|
* }
|
|
683
665
|
* ```
|
|
@@ -810,14 +792,13 @@ export declare class GraphEdgeCollection<T extends Record<string, any> = any> im
|
|
|
810
792
|
}>;
|
|
811
793
|
}
|
|
812
794
|
/**
|
|
813
|
-
* Represents a graph in a {@link Database}.
|
|
795
|
+
* Represents a graph in a {@link database.Database}.
|
|
814
796
|
*/
|
|
815
797
|
export declare class Graph {
|
|
816
798
|
protected _name: string;
|
|
817
799
|
protected _db: Database;
|
|
818
800
|
/**
|
|
819
801
|
* @internal
|
|
820
|
-
* @hidden
|
|
821
802
|
*/
|
|
822
803
|
constructor(db: Database, name: string);
|
|
823
804
|
/**
|
|
@@ -875,7 +856,7 @@ export declare class Graph {
|
|
|
875
856
|
* // graph now exists
|
|
876
857
|
* ```
|
|
877
858
|
*/
|
|
878
|
-
create(edgeDefinitions: EdgeDefinitionOptions[], options?:
|
|
859
|
+
create(edgeDefinitions: EdgeDefinitionOptions[], options?: CreateGraphOptions): Promise<GraphInfo>;
|
|
879
860
|
/**
|
|
880
861
|
* Deletes the graph from the database.
|
|
881
862
|
*
|
|
@@ -892,7 +873,7 @@ export declare class Graph {
|
|
|
892
873
|
*/
|
|
893
874
|
drop(dropCollections?: boolean): Promise<boolean>;
|
|
894
875
|
/**
|
|
895
|
-
* Returns a {@link GraphVertexCollection} instance for the given collection
|
|
876
|
+
* Returns a {@link graph.GraphVertexCollection} instance for the given collection
|
|
896
877
|
* name representing the collection in this graph.
|
|
897
878
|
*
|
|
898
879
|
* @param T - Type to use for document data. Defaults to `any`.
|
|
@@ -903,7 +884,7 @@ export declare class Graph {
|
|
|
903
884
|
* Fetches all vertex collections of this graph from the database and returns
|
|
904
885
|
* an array of their names.
|
|
905
886
|
*
|
|
906
|
-
* See also {@link Graph
|
|
887
|
+
* See also {@link graph.Graph#vertexCollections}.
|
|
907
888
|
*
|
|
908
889
|
* @example
|
|
909
890
|
* ```js
|
|
@@ -923,9 +904,9 @@ export declare class Graph {
|
|
|
923
904
|
listVertexCollections(): Promise<string[]>;
|
|
924
905
|
/**
|
|
925
906
|
* Fetches all vertex collections of this graph from the database and returns
|
|
926
|
-
* an array of {@link GraphVertexCollection} instances.
|
|
907
|
+
* an array of {@link graph.GraphVertexCollection} instances.
|
|
927
908
|
*
|
|
928
|
-
* See also {@link Graph
|
|
909
|
+
* See also {@link graph.Graph#listVertexCollections}.
|
|
929
910
|
*
|
|
930
911
|
* @example
|
|
931
912
|
* ```js
|
|
@@ -988,7 +969,7 @@ export declare class Graph {
|
|
|
988
969
|
*/
|
|
989
970
|
removeVertexCollection(collection: string | ArangoCollection, dropCollection?: boolean): Promise<GraphInfo>;
|
|
990
971
|
/**
|
|
991
|
-
* Returns a {@link GraphEdgeCollection} instance for the given collection
|
|
972
|
+
* Returns a {@link graph.GraphEdgeCollection} instance for the given collection
|
|
992
973
|
* name representing the collection in this graph.
|
|
993
974
|
*
|
|
994
975
|
* @param T - Type to use for document data. Defaults to `any`.
|
|
@@ -1015,7 +996,7 @@ export declare class Graph {
|
|
|
1015
996
|
* Fetches all edge collections of this graph from the database and returns
|
|
1016
997
|
* an array of their names.
|
|
1017
998
|
*
|
|
1018
|
-
* See also {@link Graph
|
|
999
|
+
* See also {@link graph.Graph#edgeCollections}.
|
|
1019
1000
|
*
|
|
1020
1001
|
* @example
|
|
1021
1002
|
* ```js
|
|
@@ -1035,9 +1016,9 @@ export declare class Graph {
|
|
|
1035
1016
|
listEdgeCollections(): Promise<string[]>;
|
|
1036
1017
|
/**
|
|
1037
1018
|
* Fetches all edge collections of this graph from the database and returns
|
|
1038
|
-
* an array of {@link GraphEdgeCollection} instances.
|
|
1019
|
+
* an array of {@link graph.GraphEdgeCollection} instances.
|
|
1039
1020
|
*
|
|
1040
|
-
* See also {@link Graph
|
|
1021
|
+
* See also {@link graph.Graph#listEdgeCollections}.
|
|
1041
1022
|
*
|
|
1042
1023
|
* @example
|
|
1043
1024
|
* ```js
|
|
@@ -1156,7 +1137,7 @@ export declare class Graph {
|
|
|
1156
1137
|
* Performs a traversal starting from the given `startVertex` and following
|
|
1157
1138
|
* edges contained in this graph.
|
|
1158
1139
|
*
|
|
1159
|
-
* See also {@link EdgeCollection
|
|
1140
|
+
* See also {@link collection.EdgeCollection#traversal}.
|
|
1160
1141
|
*
|
|
1161
1142
|
* @param startVertex - Document `_id` of a vertex in this graph.
|
|
1162
1143
|
* @param options - Options for performing the traversal.
|
|
@@ -1175,12 +1156,13 @@ export declare class Graph {
|
|
|
1175
1156
|
* ["y", "vertices/b", "vertices/c"],
|
|
1176
1157
|
* ["z", "vertices/c", "vertices/d"],
|
|
1177
1158
|
* ]);
|
|
1178
|
-
* const
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
1159
|
+
* const startVertex = "vertices/a";
|
|
1160
|
+
* const cursor = await db.query(aql`
|
|
1161
|
+
* FOR vertex IN OUTBOUND ${startVertex} GRAPH ${graph}
|
|
1162
|
+
* RETURN vertex._key
|
|
1163
|
+
* `);
|
|
1164
|
+
* const result = await cursor.all();
|
|
1165
|
+
* console.log(result); // ["a", "b", "c", "d"]
|
|
1184
1166
|
* ```
|
|
1185
1167
|
*/
|
|
1186
1168
|
traversal(startVertex: string, options?: TraversalOptions): Promise<any>;
|
package/graph.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../src/graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,gBAAgB,EAEhB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,IAAI,EACJ,QAAQ,EACR,KAAK,EAEN,MAAM,aAAa,CAAC;AAIrB;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAExD;
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../src/graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,gBAAgB,EAEhB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,IAAI,EACJ,QAAQ,EACR,KAAK,EAEN,MAAM,aAAa,CAAC;AAIrB;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,K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