Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix query syntax for python and swift sdks #1570

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docker/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions docker/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 14 additions & 14 deletions src/partials/prohibited-activities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 14 additions & 14 deletions src/routes/docs/products/databases/queries/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down Expand Up @@ -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. |
Expand Down
Loading