Skip to content
Back

NotEqual queries require exactly one value

  • 0
  • Functions
  • Auth
PingGhost
15 Nov, 2024, 16:40

Trying to list users except for some ids using this query

Query.limit(10000), Query.orderDesc('$createdAt'), Query.offset(0), Query.isNull('labels'), Query.lessThan('$createdAt', comparedDate.toUTCString()), Query.notEqual('$id', [...ids]) but it returns, NotEqual queries require exactly one value I also tried with the phone field, but it has the same issue. am I missing something here?

TL;DR
Developers are encountering an issue with NotEqual queries in their code while trying to query users with certain IDs excluded. The error message "NotEqual queries require exactly one value" is being returned. To resolve this, ensure that the NotEqual query is only passing one value at a time instead of an array of IDs.
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