Back

[SOLVED] arrays in appwrite

  • 0
  • Web
BloodThermic
18 Aug, 2023, 03:40

I am trying to understand the arrays feature in the attributes. What is a good use case for them? Like if I want to be able add multiple items but dont have a defined numb er?

TL;DR
The user had a question about arrays in Appwrite. It was mentioned that updates to an array attribute must be a full update and you can't insert just one item. There was also a question about querying arrays, to which it was mentioned that it depends on the specific use case. The thread ends with a question about a good use case for arrays. No solution was provided.
Drake
18 Aug, 2023, 03:45

Yes... and if you don't need to query it

BloodThermic
18 Aug, 2023, 03:46

so would it be good for like imgs?

Drake
18 Aug, 2023, 03:46

Sure

BloodThermic
18 Aug, 2023, 03:46

What is the option if i need to query it?

Drake
18 Aug, 2023, 03:46

You can't

BloodThermic
18 Aug, 2023, 03:46

ahh

BloodThermic
18 Aug, 2023, 03:46

its there any plan to add that down the road?

Drake
18 Aug, 2023, 03:47

Also, updates to an array attribute must be a full update. You can't insert one item

Drake
18 Aug, 2023, 03:47

Ya

BloodThermic
18 Aug, 2023, 03:47

Good to know!

BloodThermic
18 Aug, 2023, 03:47

Awesome thank you as always steven!

BloodThermic
18 Aug, 2023, 03:47

[SOLVED] arrays in appwrite

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