Back

Query Startwith Invalid with number field

  • 0
  • Self Hosted
  • Databases
Suiii
1 Jun, 2024, 15:33
TypeScript
  Query.startsWith("code", searchTerm),
        

AppwriteException: Invalid query: Query value is invalid for attribute "code"

TL;DR
Developers are experiencing an issue with the Query method "startsWith" not working properly with a number field. This is resulting in an Invalid query exception for the attribute "code". Consider converting the number field to a string type before using the Query method.
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