
Hey there.
So I'm trying to store an array of arrays, specifically RGB color values. Is it possible to store that, or should I just acquiesce and store the hex strings? I have them JSON.stringified in there but when i try to parse them on retrieval it is erroring so I need to figure out why, but wanted to post to see if anyone has any tips for this

What exactly is being stored and steingified?

Basically

I have a Threlte scene


and I have color configuration options for it for the progress bar colors on the road (it's animated and is used to show score) and HTML inputs require hex, but I need RGB because to animate the RGB's I animate each individual value

the Progress Bars can have multiple colors, so each one has an array of RGB values, or an array of arrays

Can you share the stringified string?

It’s [[1,255,17],[23,47,155],[144,16,182]] for example

An array of RGB arrays

The actual would be like that with quotes around it but Appwrite shows the value without quotes

what's weird...it should work...
- what is the attribute type?
- what exactly are you getting back from the database?
- what is your code?

All good I figured it out, I appreciate it, was mostly curious if a better way existed

What did you end up doing?

So I’m using a Nanostore which has an encode and decode functionality built in with local storage but I basically found out that it was missing one of the values somehow and idk for whatever reason that was breaking it during the parse, I’m currently on Websockets haha

ah interesting 👍🏼

[SOLVED] Storing an Array of Arrays
Recommended threads
- New TablesDB
In the process of developing a new web app front-end using the Appwrite SDK as backend, the SDK was updated from 18.0.0, which I started development with, to 20...
- Tables db exception
I were using latest tablesdb in my project but started facing this error. Its been few days i am using in same way but now somehow i started receving this erro...
- Appwrite freeze when I try to click into...
Like title, Its a pretty blank database, with 3 tables, and on one of the tables I added a column, then the whole thing froze and now the whole appwrite webapp ...
