src/Query/Parser.php
public static function insertMany($document, $connection)
    {
        if (gettype($document)!="array" && gettype($document)!="object") {
            throw new ClusterpointException("\"->insert()\" function: parametr passed ".json_encode(self::escape_string($document))." is not in valid document format.", 9002);
        }
        if (gettype($document)=="object") {
            $document_array = array();
            foreach ($document as $value) {
                $document_array[] = $value;
            }
            $document = $document_array;
        }
        $connection->query = json_encode(array_values($document));
        $connection->multiple = true;
        return self::insert($connection);
    }
public static function insertMany($document, $connection)
    {
        if (gettype($document)!="array" && gettype($document)!="object") {
            throw new ClusterpointException("\"->insert()\" function: parametr passed ".json_encode(self::escape_string($document))." is not in valid document format.", 9002);
        }
        if (gettype($document)=="object") {
            $document_array = array();
            foreach ($document as $value) {
                $document_array[] = $value;
            }
            $document = $document_array;
        }
        $connection->query = json_encode(array_values($document));
        $connection->multiple = true;
        return self::insert($connection);
    }
Set query documents to execute - Insert Many.

@param  array|object  $document
@param  \stdClass $connection
@return \Clusterpoint\Response\Single