mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Allow other filter query types
This commit is contained in:
parent
7a089f8861
commit
035180c4da
1 changed files with 6 additions and 4 deletions
|
|
@ -57,10 +57,7 @@ class Queries extends Validator
|
||||||
if (!$query instanceof Query) {
|
if (!$query instanceof Query) {
|
||||||
try {
|
try {
|
||||||
$query = Query::parse($query);
|
$query = Query::parse($query);
|
||||||
if (\str_contains($query->getAttribute(), '.')) { // todo: double check!
|
} catch (\Throwable) {
|
||||||
return true;
|
|
||||||
}
|
|
||||||
} catch (\Throwable $th) {
|
|
||||||
$this->message = "Invalid query: {$query}";
|
$this->message = "Invalid query: {$query}";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -93,6 +90,11 @@ class Queries extends Validator
|
||||||
case Query::TYPE_GREATER:
|
case Query::TYPE_GREATER:
|
||||||
case Query::TYPE_GREATEREQUAL:
|
case Query::TYPE_GREATEREQUAL:
|
||||||
case Query::TYPE_SEARCH:
|
case Query::TYPE_SEARCH:
|
||||||
|
case Query::TYPE_IS_NULL:
|
||||||
|
case Query::TYPE_IS_NOT_NULL:
|
||||||
|
case Query::TYPE_BETWEEN:
|
||||||
|
case Query::TYPE_STARTS_WITH:
|
||||||
|
case Query::TYPE_ENDS_WITH:
|
||||||
$methodType = Base::METHOD_TYPE_FILTER;
|
$methodType = Base::METHOD_TYPE_FILTER;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue