Back

[CLOSED] Querying an array

  • 1
  • Databases
  • General
NextG
17 Sep, 2023, 12:04

Hi, i want to query documents with i.e. the string array attribute "test". Given the following documents: 1: {..., "test": ["a", "b", "c"]} 2: {..., "test": ["d", "e", "f"]} 3: {..., "test": ["g", "b", "h"]} 4: {..., "test": ["i", "j", "k"]}

Now i want only all documents which don't contain "b". So I want only the documents 2 and 4. Is it possible in the current appwrite version? (1.4.3)

TL;DR
User is inquiring about querying an array in Appwrite and specifically wants to retrieve documents that do not contain a specific element. The user provided an example with four documents and wants to filter out the ones that have "b" in the "test" array attribute. Appwrite currently does not support this feature, but the issue has been acknowledged on GitHub (issue #2838) and support is planned for a future update.
Drake
18 Sep, 2023, 16:54

Query operations on arrays are not supported. We plan to add support in the future. Make sure to ๐Ÿ‘๐Ÿผ this issue and comment with your need for some sort of not contains support.

https://github.com/appwrite/appwrite/issues/2838

Drake
18 Sep, 2023, 16:55

[CLOSED] Querying an array

NextG
22 Sep, 2023, 09:01

Alright, thank you ๐Ÿ™‚

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