QueryDefinition.limitBy(limit) mishap

What did you do?

Query 1:
client.query(client.find(doctypeX).where(predicateX).limitBy(1000))

Query 2:
client.query(client.find(sameDoctypeX).where(samePredicateX).limitBy(10000))

(*) where client is an instance of the CozyClient

What happened?

The first query returns a data array of 300 elements
The second query returns a data array of 100 elements

  • Why does the number of elements change from query 1 and 2
  • What’s the maximum number can the limitBy(limit) method process