
I am doing a listDocumments on a collection in the database, with a few queries, but the limit gets ignored regardless to what I write in the limit query. Whatever I do I always get back 25 results
TypeScript
const promise = db.listDocuments( schema.dbid, schema.zapisi, [
Query.select(
[ /* ... bunch of fields ... */ ]),
Query.equal('isDeleted', false),
Query.greaterThanEqual('zacetekKlica',period.value[0].toISOString()),
Query.lessThanEqual('zacetekKlica', period.value[1].toISOString(),
Query.limit(10))
])
Am I doing something wrong or is it a bug?
TL;DR
Title: [SOLVED] Bug causing query limit to be ignored
Description: The user is experiencing a bug where the query limit is being ignored in their code. They have tried various approaches to set the limit but still receive 25 results. The user is unsure if they are making a mistake or if it is a bug.
Solution: After analyzing the code snippet provided, it seems that there is a missing closing parenthesis in the `Query.lessThanEqual` line. The correct code should be:
```javascript
const promise = db.listDocuments(schema.dbid, schema.zapisi, [
Query.select([
/* ... bunch
There's a bug in the code 😅 🤣 You can try to find it. It only took me about an hour 🤪

[SOLVED] Query limit ignored
Recommended threads
- Permissions in create_operations() Pytho...
How can I set permissions for `create_operations()`? What even is the correct way to use permissions in Python (using SDK version 13.4.1) ? In my cloud functio...
- Cannot add/update array field
How do I add or update the rows, How exactly to pass properties? (see provided image)
- TablesDB not available in FRA?
Hi, in the cloud version, v1.8.0 Frankfurt, is it possible to use TablesDB ? I don’t see that feature in the console.
