Back

Invalid query: Or queries can only contain filter queries

  • 0
  • Web
Suiii
26 Mar, 2024, 16:35
TypeScript
      Query.startsWith('familyNameEN', params.searchTerm!),
      Query.limit(params.pageSize!),
      // Query.offset(getOffsetSize(params.pageNumber!, params.pageSize!))
    ]))```
TL;DR
The developers were discussing an issue with an invalid query containing "OR" and "limit." It was explained that OR queries can only contain filter queries like "startswith" OR "equals." The code provided shows an example of a proper query using "startswith" OR "equals" without the limit and offset included within the OR query.
Kenny
26 Mar, 2024, 16:43

limit and offset would not go in the or

Kenny
26 Mar, 2024, 16:44

It wouldn't make sense to have starts with OR limit. You could do startswith OR equals for example.

Suiii
26 Mar, 2024, 16:48

okay . make sense

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more