guild icon
Toit
#storage buckets and custom objects
Thread channel in help
addshore
addshore 02/13/2025 04:08 PM
I see that storage buckets can store custom objects if they ultimately extend something like a List? (probably)..
I have an object that contains 2 lists, and was wondering if there is a shortcut to being able to just store this?
Or should I rework it to be a single List? :🙂:
addshore
addshore 02/13/2025 04:08 PM
pretty sure I already know the answer :😄:
floitsch
floitsch 02/13/2025 04:09 PM
The data needs to be serializable by tison (more or less the same as JSON)
floitsch
floitsch 02/13/2025 04:10 PM
There are no hooks for custom objects atm
👍1
addshore
addshore 02/13/2025 04:10 PM
but If I do something such as class V3DataField extends ByteArray: that should be storable?
floitsch
floitsch 02/13/2025 04:10 PM
I would definitely not do that
🤣1
floitsch
floitsch 02/13/2025 04:11 PM
Who knows where we expected that byte arrays are the things we know about... Could work from time to time and then silently fail...
addshore
addshore 02/13/2025 04:13 PM
Right, I'll just store and retrieve my own bytes in that case :🙂:
👍1
8 messages in total