Revert "Don't accumulate docs on update/delete"

This reverts commit 8c1b9044b3.

# Conflicts:
#	app/controllers/api/databases.php
This commit is contained in:
Jake Barnby
2025-05-07 15:44:58 +12:00
parent f7d7b8d3dd
commit 572c49cc90
4 changed files with 43 additions and 72 deletions
-1
View File
@@ -154,7 +154,6 @@ class Response extends SwooleResponse
public const MODEL_INDEX_LIST = 'indexList';
public const MODEL_DOCUMENT = 'document';
public const MODEL_DOCUMENT_LIST = 'documentList';
public const MODEL_BULK_OPERATION = 'bulkOperation';
// Database Attributes
public const MODEL_ATTRIBUTE = 'attribute';
@@ -1,40 +0,0 @@
<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
class BulkOperation extends Model
{
public function __construct()
{
$this
->addRule('modified', [
'type' => self::TYPE_INTEGER,
'description' => 'How many document were modified in this request.',
'default' => 0,
'example' => 10,
]);
}
/**
* Get Name
*
* @return string
*/
public function getName(): string
{
return 'BulkOperation';
}
/**
* Get Type
*
* @return string
*/
public function getType(): string
{
return Response::MODEL_BULK_OPERATION;
}
}