Back

How to append values to array

  • 1
  • Web
naveen
29 Mar, 2023, 17:09

I have a basic doubt about how we append data to the end of an array in appwrite database. Now update document is just replacing them without adding a new data into the array.

TL;DR
The user wants to know how to append values to an array in Appwrite's database. The response suggests using the update function for now, but also mentions that Appwrite is working on introducing the feature of adding to arrays. They provide a link to an issue on GitHub that the user can upvote. There is no specific solution provided in the thread.
joeyouss
29 Mar, 2023, 17:20

Hi, currently, update function is the best way to do this, we are working on introducing the feature of adding to the array. Can you please upvote this: https://github.com/appwrite/appwrite/issues/2531

VincentGe
29 Mar, 2023, 21:27

Append it locally and update the document for now 🙂

naveen
30 Mar, 2023, 03:57

Ok thank you👍

ViharGandhi
21 May, 2023, 16:21

How do we do it with the update document

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