Back

Cant find values with "-" characters in database with Query.search

  • 0
  • Databases
  • Web
  • Cloud
_alnes_
24 Aug, 2023, 17:41
TypeScript
this.database.listDocuments(this.joinedUserDatabaseId, this.joinedUserCollectionId,[Query.search('email', search), Query.notEqual('email', ignoreThisEmail)])

email value is: a-sample@sample.com

I just get an empty array back. With "_" in the mail and of course only characters/numbers works perfectly.

I use Appwrite Cloud and Angular with Sdk.

I just can't explain it for me πŸ˜•

thanks for any help.

greets matze

TL;DR
The user is having trouble searching for values with "-" characters in an Appwrite database using the Query.search method. They have checked the Appwrite documentation but couldn't find a solution. They have provided a code snippet where they are trying to search the email field for a specific value. The email value they are searching for is "a-sample@sample.com". However, they are getting an empty array as a result. Searching for values with "_" in the email works fine. The user is using Appwrite Cloud and Angular with Sdk. They are looking for help or an explanation for why this is happening. Solution: It seems that the
_alnes_
24 Aug, 2023, 18:43

Thanks 😊 i dont found this info inside appwrite docu.

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