Skip to content

Commit dc4dbe3

Browse files
Merge pull request #331 from appwrite/fix-remove-contains-query
2 parents 83a2dd2 + b8a5c3d commit dc4dbe3

File tree

10 files changed

+0
-40
lines changed

10 files changed

+0
-40
lines changed

templates/android/library/src/main/java/io/appwrite/Query.kt.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ class Query {
1313
fun greater(attribute: String, value: Any) = Query.addQuery(attribute, "greater", value)
1414

1515
fun greaterEqual(attribute: String, value: Any) = Query.addQuery(attribute, "greaterEqual", value)
16-
17-
fun contains(attribute: String, value: List<Any>) = Query.addQuery(attribute, "contains", value)
1816

1917
fun search(attribute: String, value: String) = Query.addQuery(attribute, "search", value)
2018

templates/dart/lib/query.dart.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ class Query {
1919
static greaterEqual(String attribute, dynamic value) =>
2020
_addQuery(attribute, 'greaterEqual', value);
2121

22-
static contains(String attribute, List<dynamic> value) =>
23-
_addQuery(attribute, 'contains', value);
24-
2522
static search(String attribute, String value) =>
2623
_addQuery(attribute, 'search', value);
2724

templates/deno/src/query.ts.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ export class Query {
2121
static greaterEqual = (attribute: string, value: QueryTypes): string =>
2222
Query.addQuery(attribute, "greaterEqual", value);
2323

24-
static contains = (attribute: string, value: QueryTypesList): string =>
25-
Query.addQuery(attribute, "contains", value);
26-
2724
static search = (attribute: string, value: string): string =>
2825
Query.addQuery(attribute, "search", value);
2926

templates/flutter/lib/query.dart.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ class Query {
1919
static greaterEqual(String attribute, dynamic value) =>
2020
_addQuery(attribute, 'greaterEqual', value);
2121

22-
static contains(String attribute, List<dynamic> value) =>
23-
_addQuery(attribute, 'contains', value);
24-
2522
static search(String attribute, String value) =>
2623
_addQuery(attribute, 'search', value);
2724

templates/kotlin/src/main/kotlin/io/appwrite/Query.kt.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ class Query {
1414

1515
fun greaterEqual(attribute: String, value: Any) = Query.addQuery(attribute, "greaterEqual", value)
1616

17-
fun contains(attribute: String, value: List<Any>) = Query.addQuery(attribute, "contains", value)
18-
1917
fun search(attribute: String, value: String) = Query.addQuery(attribute, "search", value)
2018

2119
private fun addQuery(attribute: String, oper: String, value: Any): String {

templates/node/lib/query.js.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class Query {
1717
static greaterEqual = (attribute, value) =>
1818
Query.addQuery(attribute, "greaterEqual", value);
1919

20-
static contains = (attribute, valueList) =>
21-
Query.addQuery(attribute, "contains", valueList);
22-
2320
static search = (attribute, value) =>
2421
Query.addQuery(attribute, "search", value);
2522

templates/php/src/Query.php.twig

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,6 @@ class Query
7676
return self::addQuery($attribute, 'greaterEqual', $value);
7777
}
7878
79-
/**
80-
* Contains
81-
*
82-
* @param string $attribute
83-
* @param mixed $value
84-
* @return string
85-
*/
86-
public static function contains(string $attribute, array $value): string
87-
{
88-
return self::addQuery($attribute, 'contains', $value);
89-
}
90-
9179
/**
9280
* Search
9381
*

templates/python/package/query.py.twig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ class Query:
2323
def greaterEqual(attribute, value):
2424
return Query.addQuery(attribute, "greaterEqual", value)
2525

26-
@staticmethod
27-
def contains(attribute, value):
28-
assert isinstance(value, list)
29-
return Query.addQuery(attribute, "contains", value)
30-
3126
@staticmethod
3227
def search(attribute, value):
3328
return Query.addQuery(attribute, "search", value)

templates/ruby/lib/container/query.rb.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ module {{spec.title | caseUcfirst}}
2020
def greaterEqual(attribute, value)
2121
return Query.addQuery(attribute, "equal", value)
2222
end
23-
def contains(attribute, value)
24-
return Query.addQuery(attribute, "contains", value)
25-
end
2623
def search(attribute, value)
2724
return Query.addQuery(attribute, "search", value)
2825
end

templates/swift/Sources/Models/Query.swift.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ public class Query {
2424
buildQueryWhere(attribute, is: "greaterEqual", to: value)
2525
}
2626

27-
public static func contains(_ attribute: String, value: Array<Any>) -> String {
28-
buildQueryWhere(attribute, is: "contains", to: value)
29-
}
30-
3127
public static func search(_ attribute: String, value: String) -> String {
3228
buildQueryWhere(attribute, is: "search", to: value)
3329
}

0 commit comments

Comments
 (0)