Skip to content

Commit a2d449a

Browse files
author
diabl0
committed
Support for general bulk import API options
1 parent 99eb66f commit a2d449a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/ArangoDBClient/CollectionHandler.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,9 @@ public function importFromFile(
786786
* <li>'createCollection' - If true, create the collection if it does not exist. Defaults to false </li>
787787
* </p>
788788
*
789+
* Other options as described in API Documentation*
790+
* @see https://docs.arangodb.com/3.1/HTTP/BulkImports/
791+
*
789792
* @return array
790793
* @throws \ArangoDBClient\Exception
791794
* @throws \ArangoDBClient\ClientException
@@ -811,9 +814,10 @@ public function import(
811814

812815
$this->createCollectionIfOptions($collection, $options);
813816

814-
$params = [
815-
self::OPTION_COLLECTION => $collection
816-
];
817+
$params = array_merge(
818+
[self::OPTION_COLLECTION => $collection],
819+
$options
820+
);
817821

818822
if (array_key_exists('type', $options)) {
819823
switch ($options['type']) {

0 commit comments

Comments
 (0)