Menu

## Import
in package

Abstract Yes
Import.php : 21

Allow import multiple documents to a collection

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Methods

importArrayDocuments() : array<string|int, mixed>
  Import multiple documents from a array document
importJsonDocuments() : array<string|int, mixed>
  Import multiple documents from a JSON document

### Methods

#### importArrayDocuments()

Import.php : 69

Import multiple documents from a array document

`public static importArrayDocuments(Connection $connection, string $collection, string $arrayDocuments) : array<string|int, mixed>`

##### Parameters

$connection : Connection

  Connection object to use.

$collection : string

  Collection to import. Must exist on server.

$arrayDocuments : string

  Documents JSON arrays as string representation

##### Tags

throws
  ServerException|GuzzleException|InvalidParameterException|MissingParameterException
see
  https://www.arangodb.com/docs/stable/http/bulk-imports-importing-self-contained.html

##### Return values

array<string|int, mixed> —

with the results of operation

#### importJsonDocuments()

Import.php : 35

Import multiple documents from a JSON document

`public static importJsonDocuments(Connection $connection, string $collection, string $jsonDocuments) : array<string|int, mixed>`

##### Parameters

$connection : Connection

  Connection object to use.

$collection : string

  Collection to import. Must exist on server.

$jsonDocuments : string

  JSON documents as string representation

##### Tags

throws
  ServerException|GuzzleException|InvalidParameterException|MissingParameterException
see
  https://www.arangodb.com/docs/stable/http/bulk-imports-importing-self-contained.html

##### Return values

array<string|int, mixed> —

with the results of operation

## Search results