From 65a2fa63136e137233ce98949e02ceae2f9c1f14 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 22 Dec 2024 06:35:25 +0000 Subject: [PATCH 1/3] fix: query syntax for python --- 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 8402c8cb2d..bfca6b34a2 100644 --- a/src/routes/docs/products/databases/queries/+page.markdoc +++ b/src/routes/docs/products/databases/queries/+page.markdoc @@ -71,8 +71,8 @@ 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.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.or_queries([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_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. | From 1e6b2a54084853cc1d2f6d0cbacadcafeea63821 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 22 Dec 2024 06:35:52 +0000 Subject: [PATCH 2/3] format: prettier --- docker/production.yml | 12 ++++++------ docker/stage.yml | 12 ++++++------ src/partials/prohibited-activities.md | 28 +++++++++++++-------------- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docker/production.yml b/docker/production.yml index e803d70185..b4a01beb2c 100644 --- a/docker/production.yml +++ b/docker/production.yml @@ -123,12 +123,12 @@ services: image: ghcr.io/appwrite/monitoring:0.1.0 entrypoint: monitoring command: - - "--url=${_APP_BETTER_STACK_INCIDENT_URL}" - - "--interval=60" - - "--cpu-limit=85" - - "--memory-limit=80" - - "--disk-limit=85" - hostname: "{{.Node.Hostname}}" + - '--url=${_APP_BETTER_STACK_INCIDENT_URL}' + - '--interval=60' + - '--cpu-limit=85' + - '--memory-limit=80' + - '--disk-limit=85' + hostname: '{{.Node.Hostname}}' <<: *x-logging volumes: - /mnt:/mnt:ro diff --git a/docker/stage.yml b/docker/stage.yml index ef8070fb11..56d71b6037 100644 --- a/docker/stage.yml +++ b/docker/stage.yml @@ -118,12 +118,12 @@ services: image: ghcr.io/appwrite/monitoring:0.1.0 entrypoint: monitoring command: - - "--url=${_APP_BETTER_STACK_INCIDENT_URL}" - - "--interval=60" - - "--cpu-limit=85" - - "--memory-limit=80" - - "--disk-limit=85" - hostname: "{{.Node.Hostname}}" + - '--url=${_APP_BETTER_STACK_INCIDENT_URL}' + - '--interval=60' + - '--cpu-limit=85' + - '--memory-limit=80' + - '--disk-limit=85' + hostname: '{{.Node.Hostname}}' <<: *x-logging volumes: - /mnt:/mnt:ro diff --git a/src/partials/prohibited-activities.md b/src/partials/prohibited-activities.md index d375127775..94d6c32ef9 100644 --- a/src/partials/prohibited-activities.md +++ b/src/partials/prohibited-activities.md @@ -2,17 +2,17 @@ The following actions are prohibited on the Appwrite platform and may lead to immediate suspension or termination: -* **Illegal and harmful content:** Sharing any content that is illegal, infringing (e.g., copyright infringement), harmful, threatening, defamatory, obscene, harassing, or otherwise objectionable. This includes distributing malware, viruses, or any malicious code. -* **Unauthorized access and disruption:** Accessing or attempting to access any system, data, or account without authorization. This includes: - * Hacking - * Penetration testing without approval - * Denial-of-Service (DoS) attacks - * Disrupting Appwrite Cloud's integrity or performance (e.g., excessive resource usage, unauthorized load testing) -* **Deceptive practices:** Engaging in any fraudulent or deceptive activity, such as: - * Phishing - * Misleading others - * Circumventing payment obligations -* **Unsolicited communications:** Sending spam, unauthorized advertising, or any form of improper solicitation. -* **Misuse of resources:** - * Using Appwrite Cloud for cryptocurrency mining without authorization - * Violating any applicable laws or regulations +- **Illegal and harmful content:** Sharing any content that is illegal, infringing (e.g., copyright infringement), harmful, threatening, defamatory, obscene, harassing, or otherwise objectionable. This includes distributing malware, viruses, or any malicious code. +- **Unauthorized access and disruption:** Accessing or attempting to access any system, data, or account without authorization. This includes: + - Hacking + - Penetration testing without approval + - Denial-of-Service (DoS) attacks + - Disrupting Appwrite Cloud's integrity or performance (e.g., excessive resource usage, unauthorized load testing) +- **Deceptive practices:** Engaging in any fraudulent or deceptive activity, such as: + - Phishing + - Misleading others + - Circumventing payment obligations +- **Unsolicited communications:** Sending spam, unauthorized advertising, or any form of improper solicitation. +- **Misuse of resources:** + - Using Appwrite Cloud for cryptocurrency mining without authorization + - Violating any applicable laws or regulations From 017043f0505e63b75707acfe20d94556e3dee551 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 22 Dec 2024 06:51:03 +0000 Subject: [PATCH 3/3] fix: query syntax for swift --- .../products/databases/queries/+page.markdoc | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/routes/docs/products/databases/queries/+page.markdoc b/src/routes/docs/products/databases/queries/+page.markdoc index bfca6b34a2..2e78332175 100644 --- a/src/routes/docs/products/databases/queries/+page.markdoc +++ b/src/routes/docs/products/databases/queries/+page.markdoc @@ -185,20 +185,20 @@ 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.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.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. | -| `Query.greaterThanEqual("score", 10)` | Returns document if attribute is greater than or equal to the provided value. | -| `Query.between("price", 5, 10)` | Returns document if attribute value falls between the two values. The boundary values are inclusive and can be strings or numbers. | +| `Query.equal("title", value: ["Iron Man"])` | Returns document if attribute is equal to any value in the provided array. | +| `Query.notEqual("title", value: ["Iron Man"])` | Returns document if attribute is not equal to any value in the provided array. | +| `Query.lessThan("score", value: 10)` | Returns document if attribute is less than the provided value. | +| `Query.lessThanEqual("score", value: 10)` | Returns document if attribute is less than or equal to the provided value. | +| `Query.greaterThan("score",value: 10)` | Returns document if attribute is greater than the provided value. | +| `Query.greaterThanEqual("score", value: 10)` | Returns document if attribute is greater than or equal to the provided value. | +| `Query.between("price", start: 5, end: 10)` | Returns document if attribute value falls between the two values. The boundary values are inclusive and can be strings or numbers. | | `Query.isNull("name")` | Returns documents where attribute value is null. | | `Query.isNotNull("name")` | Returns documents where attribute value is **not** null. | -| `Query.startsWith("name", "Once upon a time")` | Returns documents if a string attributes starts with a substring. | -| `Query.endsWith("name", "happily ever after.")` | Returns documents if a string attributes ends with a substring. | -| `Query.contains("ingredients", ['apple', 'banana'])` | Returns documents if a the array attribute contains the specified elements. | -| `Query.contains("name", "Tom")` | Returns documents if a string attributes is like the pattern specified. | -| `Query.search("text", "key words")` | Searches string attributes for provided keywords. Requires a [full-text index](/docs/products/databases/collections#indexes) on queried attributes. | +| `Query.startsWith("name", value: "Once upon a time")` | Returns documents if a string attributes starts with a substring. | +| `Query.endsWith("name", value: "happily ever after.")` | Returns documents if a string attributes ends with a substring. | +| `Query.contains("ingredients", value: ['apple', 'banana'])` | Returns documents if a the array attribute contains the specified elements. | +| `Query.contains("name", value: "Tom")` | Returns documents if a string attributes is like the pattern specified. | +| `Query.search("text", value: "key words")` | Searches string attributes for provided keywords. Requires a [full-text index](/docs/products/databases/collections#indexes) on queried attributes. | | `Query.orderDesc("attribute")` | Orders results in descending order by attribute. Attribute must be indexed. Pass in an empty string to return in natural order. | | `Query.orderAsc("attribute")` | Orders results in ascending order by attribute. Attribute must be indexed. Pass in an empty string to return in natural order. | | `Query.limit(25)` | Limits the number of results returned by the query. Used for [pagination](/docs/products/databases/pagination). If the limit query is not used, the limit defaults to 25 results. |