Back

[SOLVED] How to update an attribute which is stored as a string[]

  • 0
  • Databases
  • Web
zorba11
29 Sep, 2023, 02:34

Hi there,

How would you add a new item to an attribute which is stored as an array. I couldn’t find any examples on the databases/documents api docs.

Help is much appreciated.

Thanks in advance 🙂

TL;DR
The user is asking how to add a new item to an attribute that is stored as an array. They couldn't find any examples in the API documentation. Solution: To add a new item to the array, you need to replace the entire array with a new array that includes the additional item.
Drake
30 Sep, 2023, 01:24

Full replace. So set it to the new array

zorba11
2 Oct, 2023, 15:29

Thank you, that helps

safwan
2 Oct, 2023, 17:35

[SOLVED] How to update an attribute which is stored as a string[]

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