Import
in package
AbstractYes
Allow import multiple documents to a collection
Tags
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 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
Return values
array<string|int, mixed> —with the results of operation
importJsonDocuments()
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
Return values
array<string|int, mixed> —with the results of operation