Skip to content
Open
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
14 changes: 7 additions & 7 deletions src/routes/docs/apis/rest/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ You can attach multiple query strings by including the array parameter multiple

For example, the unescaped query string might look like this.
```text
?queries[0]={"method":"equal","column":"name","values":["John"]}&queries[1]={"method":"limit","values":[6]}
?queries[0]={"method":"equal","attribute":"name","values":["John"]}&queries[1]={"method":"limit","values":[6]}
```

The JSON has a general format like this.

```json
{
"method": "<QUERY_METHOD>",
"column": "<ATTRIBUTE>",
"attribute": "<ATTRIBUTE>",
"values": [
<VALUE1>,
<VALUE2>,
Expand All @@ -306,7 +306,7 @@ For example, to query for all rows with the name "John" or "Jane", the query str
```json
{
"method": "equal",
"column": "name",
"attribute": "name",
"values": [
"John",
"Jane"
Expand All @@ -320,15 +320,15 @@ When in doubt, you can use the Appwrite SDKs to generate the query strings for y
```json
{
"method": "isNull",
"column": "name"
"attribute": "name"
}
{
"method": "select",
"values": ["name", "age", "email"]
}
{
"method": "between",
"column": "age",
"attribute": "age",
"values": [18, 30]
}
{
Expand All @@ -349,12 +349,12 @@ In these cases, `column` is empty and `values` is an array of queries.
"values": [
{
"method": "equal",
"column": "name",
"attribute": "name",
"values": ["John"]
},
{
"method": "between",
"column": "age",
"attribute": "age",
"values": [20, 30]
}
]
Expand Down