Back

Is There a way to query on a empty array field

  • 0
  • Self Hosted
  • Databases
  • Web
Rovar2000
25 Mar, 2024, 11:48

i tried to use contains but it always require a value and i can't no longer use the search method cause it won't let me create the index for an array fields. is there any workaround s i could use to filter the empty array fields?

TL;DR
Developers are looking for a way to query on an empty array field but struggles with the 'contains' method that requires a value. The workaround is to use a filtering method that allows for querying empty array fields.
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