Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 9297ac2

Browse files
authored
Merge pull request #129 from appwrite/fix-database-query-examples
Fix: OR queries require an array of values
2 parents 6f50913 + 46ed598 commit 9297ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/docs/database.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func main() {
342342
<h3>Web</h3>
343343
<div class="ide" data-lang="javascript" data-lang-label="Web SDK">
344344
<pre class="line-numbers"><code class="prism language-javascript" data-prism>sdk.database.listDocuments('movies', [
345-
Query.equal('title', 'Avatar', 'Lord of the Rings'),
345+
Query.equal('title', ['Avatar', 'Lord of the Rings']),
346346
Query.greater('year', 1999)
347347
]);
348348
</code></pre>

0 commit comments

Comments
 (0)