From 779eccdee0f6884b550b300bfcbb566e4482e06c Mon Sep 17 00:00:00 2001 From: Aditya Pandey Date: Thu, 19 Sep 2024 10:39:02 +0530 Subject: [PATCH 1/2] Update +page.markdoc --- src/routes/docs/products/databases/queries/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/products/databases/queries/+page.markdoc b/src/routes/docs/products/databases/queries/+page.markdoc index fbacbca8af..bbd9c5034b 100644 --- a/src/routes/docs/products/databases/queries/+page.markdoc +++ b/src/routes/docs/products/databases/queries/+page.markdoc @@ -15,7 +15,7 @@ Appwrite SDKs provide a `Query` class to help you build queries. The `Query` cla | Example | Description | |------------------------------------|-----------------------------------------------------------------------------------------------------------------------| | `Query.select(["name", "title"])` | Select which attributes should be returned from a document. | -| `Query.and([Query.lessThan("size", 10), Query.greaterThan("size", 5)])` | Returns document if it matches all of the nested sub-queries in the array passed in. | +| `Query.and_queries([Query.lessThan("size", 10), Query.greaterThan("size", 5)])` | Returns document if it matches all of the nested sub-queries in the array passed in. | | `Query.or([Query.lessThan("size", 5), Query.greaterThan("size", 10)])` | Returns document if it matches any of the nested sub-queries in the array passed in. | | `Query.equal("title", ["Iron Man"])` | Returns document if attribute is equal to any value in the provided array. | | `Query.notEqual("title", ["Iron Man"])` | Returns document if attribute is not equal to any value in the provided array. | @@ -417,4 +417,4 @@ query { } } ``` -{% /multicode %} \ No newline at end of file +{% /multicode %} From e41fb07e857acd30ef2c19738855372ca10da5a0 Mon Sep 17 00:00:00 2001 From: Aditya Pandey Date: Thu, 19 Sep 2024 10:42:54 +0530 Subject: [PATCH 2/2] Update +page.markdoc --- src/routes/docs/products/databases/queries/+page.markdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/docs/products/databases/queries/+page.markdoc b/src/routes/docs/products/databases/queries/+page.markdoc index bbd9c5034b..27f8961d5f 100644 --- a/src/routes/docs/products/databases/queries/+page.markdoc +++ b/src/routes/docs/products/databases/queries/+page.markdoc @@ -15,7 +15,7 @@ Appwrite SDKs provide a `Query` class to help you build queries. The `Query` cla | Example | Description | |------------------------------------|-----------------------------------------------------------------------------------------------------------------------| | `Query.select(["name", "title"])` | Select which attributes should be returned from a document. | -| `Query.and_queries([Query.lessThan("size", 10), Query.greaterThan("size", 5)])` | Returns document if it matches all of the nested sub-queries in the array passed in. | +| `Query.and([Query.lessThan("size", 10), Query.greaterThan("size", 5)])` | Returns document if it matches all of the nested sub-queries in the array passed in. | | `Query.or([Query.lessThan("size", 5), Query.greaterThan("size", 10)])` | Returns document if it matches any of the nested sub-queries in the array passed in. | | `Query.equal("title", ["Iron Man"])` | Returns document if attribute is equal to any value in the provided array. | | `Query.notEqual("title", ["Iron Man"])` | Returns document if attribute is not equal to any value in the provided array. | @@ -72,7 +72,7 @@ Appwrite SDKs provide a `Query` class to help you build queries. The `Query` cla |------------------------------------|-----------------------------------------------------------------------------------------------------------------------| | `Query.select(["name", "title"])` | Select which attributes should be returned from a document. | | `Query.or([Query.less_than("size", 5), Query.greater_than("size", 10)])` | Returns document if it matches any of the nested sub-queries in the array passed in. | -| `Query.and([Query.less_than("size", 10), Query.greater_than("size", 5)])` | Returns document if it matches all of the nested sub-queries in the array passed in. | +| `Query.and_queries([Query.less_than("size", 10), Query.greater_than("size", 5)])` | Returns document if it matches all of the nested sub-queries in the array passed in. | | `Query.equal("title", ["Iron Man"])` | Returns document if attribute is equal to any value in the provided array. | | `Query.not_equal("title", ["Iron Man"])` | Returns document if attribute is not equal to any value in the provided array. | | `Query.less_than("score", 10)` | Returns document if attribute is less than the provided value. | @@ -186,7 +186,7 @@ Appwrite SDKs provide a `Query` class to help you build queries. The `Query` cla | `Query.and([Query.lessThan("size", 10), Query.greaterThan("size", 5)])` | Returns document if it matches all of the nested sub-queries in the array passed in. | | `Query.or([Query.lessThan("size", 5), Query.greaterThan("size", 10)])` | Returns document if it matches any of the nested sub-queries in the array passed in. | | `Query.equal("title", ["Iron Man"])` | Returns document if attribute is equal to any value in the provided array. | -| `Query.notEqual("title", ["Iron Man"])` | Returns document if attribute is not equal to any value in the provided array. | +| `Query.equal("released", value: [true])` | Returns document if attribute is not equal to any value in the provided array. | | `Query.lessThan("score", 10)` | Returns document if attribute is less than the provided value. | | `Query.lessThanEqual("score", 10)` | Returns document if attribute is less than or equal to the provided value. | | `Query.greaterThan("score", 10)` | Returns document if attribute is greater than the provided value. |