mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix empty queries
This commit is contained in:
@@ -3581,7 +3581,7 @@ $collections = [
|
||||
'format' => '',
|
||||
'size' => 410002,
|
||||
'signed' => false,
|
||||
'required' => false,
|
||||
'required' => true,
|
||||
'default' => [],
|
||||
'array' => false,
|
||||
'filters' => ['json'],
|
||||
|
||||
@@ -180,7 +180,7 @@ App::error()
|
||||
$route = $utopia->match($request);
|
||||
$collectionId = $route->getParamValue('collectionId');
|
||||
$databaseId = $route->getParamValue('databaseId');
|
||||
$queries = $request->getParam('queries');
|
||||
$queries = $request->getParam('queries', []);
|
||||
|
||||
$queriesValidator = new ArrayList(new Text(APP_LIMIT_ARRAY_ELEMENT_SIZE), APP_LIMIT_ARRAY_PARAMS_SIZE);
|
||||
if (!$queriesValidator->isValid($queries)) {
|
||||
|
||||
@@ -1035,10 +1035,14 @@ trait DatabasesBase
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-timeout' => 1,
|
||||
], $this->getHeaders()), [
|
||||
'queries' => ['notEqual("longtext", "appwrite")'],
|
||||
//'queries' => ['notEqual("longtext", "appwrite")'],
|
||||
]);
|
||||
|
||||
var_dump($docs);
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
for ($i = 0; $i < count($documents); $i++) {
|
||||
$this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['moviesId'] . '/documents/' . $documents[$i]['body']['$id'], array_merge([
|
||||
'content-type' => 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user