Back

Update only specific index of array type attribute.

  • 0
  • Databases
  • Web
  • Cloud
debashish
10 Nov, 2023, 04:06

Is it possible to update only specific index of a array type attribute rather than the whole attribute. for example i have attribute called received_messages which is of type array of string. its actually a array of stringified object . while updating i want to update only specific array item rather than sending back whole array as an update. let me know how to acheive this through appwrite.

TL;DR
The user wants to know if it's possible to update only a specific index of an array type attribute in Appwrite, instead of replacing the entire attribute. They have an attribute called "received_messages" which is an array of stringified objects. They're seeking guidance on how to achieve this.
Drake
10 Nov, 2023, 19:19

We plan to add additional operations on arrays. For now, you'd need to do a full replace

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